- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Master Drafter/ CAD Programmer
Using Inventor 2018