iPart/ iAssembly Balloon numbering correction

iPart/ iAssembly Balloon numbering correction

meck
Collaborator Collaborator
725 Views
6 Replies
Message 1 of 7

iPart/ iAssembly Balloon numbering correction

meck
Collaborator
Collaborator

Hi Everyone,

When you have iParts in an iAssembly, and you set the item number of the iPart to a certain number. When you change the iAssembly to a different member and it changes the iPart to a different member also it changes the item number. Is there a way to stop that from happening? If not has someone got a tip on how to go about coding something to keep the item numbers or change the item numbers back after a change to the iassembly member?

Example:

The iAssembly is set to member MyAssy1, and the iPart is set to member MyPart1 also in the MyAssy1 iassembly member. In MyAssy2 the iPart is set to MyPart4. The item number for the occurrence for MyPart will change to a different item number. We need the item numbers to remain constant through all of the versions of MyAssy.

 

I sure hope that is clear enough. 😎

Thanks

Meck

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
726 Views
6 Replies
Replies (6)
Message 2 of 7

bradeneuropeArthur
Mentor
Mentor

You could use your own item number as Custom property for the ballooning!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 7

meck
Collaborator
Collaborator

Let me try to explain further.

We have a program that reads an assembly bill of material and places the information into our ERP system. With iAssemblies and iParts working as they do, we have to manually go through each assembly member and change the item numbers so that a certain occurrence is always the same item number for each iassembly member. This is really time consuming. 

In a nutshell, we need to set the occurrence item number the same for each iassembly member. So if someone could possible direct me on how to get the occurrence number from a row in the bill of materials that would be a huge help.

 

Thanks All,

Meck

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 4 of 7

Ralf_Krieg
Advisor
Advisor

Hello

 

Is it possible to make some screenshots of the numbers that need to be changed? I didn't understand what you want to do and where.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 5 of 7

meck
Collaborator
Collaborator

Thanks so much for the response!

In the attached image items 1 and 2 are from the same occurrence (42C8914H01:1). But because they are in different iassembly members and have different part numbers (H01 and H02) they are given different Item numbers (1 & 2). We have been manually changing these so that they are the same Item number. In this example we may set them both to Item 1. That pretty easy in an assembly this small, but when the assembly has 100 parts and 20 variations it takes a very long time.

What I'd like to be able to do is get the occurrence numbers of each item in the Bill of Material. Examine the all the occurrence numbers and if I find ones that match, set their Item numbers to be the same. In the example above we would set them to Item 1, the lowest item number of the matching items.

I have not been able to find code to get the occurrence number while querying the Bill of Material. I have found how to get the occurrence number from a balloon in a drawing. I have been trying to make that work, but is has been complex to say the least.

The reasoning behind all of this is because we only create 1 drawing to be used for all versions of the iassembly. So no matter which iassembly member is active the item number needs to be the same. This becomes more of a problem because we have a program that reads the assembly BOM and puts the information into our ERP system. This wasn't a problem before we started using iassemblies.

I really hope this explains what I'm trying to do and why.

Thanks

Meck

 

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 6 of 7

A.Acheson
Mentor
Mentor

@meck 

Could you please list out the pattern of changes you need? From your description it can be hard to understand without seeing all the context such as drawings, Bom etc. I see the same occurrence has a different partnumber from assembly to assembly is there a reason? Different tracking/tagging? 

My attempt at understand workflow  

iassy1:

(42C8914H01:1).

partnumber 42C8914H01

:1= item1

 

iassy2:

(42C8914H01:1).

(42C8914H01:2).

partnumber 42C8914H02

 

Link: occurence number to item number?

:2 = item2

iassy3:?

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 7 of 7

meck
Collaborator
Collaborator

Hi All,

Sorry for those that have been reading this thread. I was pulled from this project for a while, but I'm back on it again.

I hope I can clear up the confusion from previous post.

Please reference the attached image file...

With the BOM open if I click on item 84, it highlights 3 parts in the browser. In this case parts 42C8943H02 with the occurrence numbers :55, :56, :57. If I click on item 85 the same 3 parts in the browser will be highlighted. Their part numbers will change to 42C8943H01, but the occurrence numbers are the same :55, :56, :57.

What I want to do is traverse the BOM and get the occurrence number of the part in each row. If I can get that I can then compare that number with other numbers in the BOM and then set their item numbers to the same value. In the example Item 85 would become item 84 so that both 42C8943H01 and 42C8943H02 would have the same item number.

I’ve been tinkering with Inventor’s BOM sample  but I cannot get the occurrence number from the row object in the BOM.

 

For i = 1 To oBOMRows.Count
' Get the current row.
Dim oRow As Inventor.BOMRow
oRow = oBOMRows.Item(i)

'Set a reference to the primary ComponentDefinition of the row
Dim oCompDef As Inventor.ComponentDefinition
oCompDef = oRow.ComponentDefinitions.Item(1)

Dim occurrence As Inventor.ComponentOccurrence
occurrence = oCompDef.Occurrences(1) <<<<<<<This fails if it is only a parts file, and returns subcomponents if it is a sub assembly

Next

 

I sure hope this helps clear this up, because I am stumped.

Thanks All!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes