Message 1 of 3
BOM row ComponentDefinitions null after updating file reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an assembly like this that contains a link to an Ipt:
Asm1.iam
--> Part1.ipt
In an external c# stand alone application, using Inventor 2018 Application COM:
- I do a ReplaceReference on the Part1.ipt to change it to Part1_1.ipt (it's just a copy of the original ipt with the part number changed) - this works with no problem.
- After I do this I try to read the structured BOM on the iam (I'm reading the part number for each row). When I get to the row associated with the ipt the ComponentDefinitions property for the row is null.
- I tried doing and Update on the document before reading the BOM, also tried a save (even a rebuild) - this did not solve anything. The only thing I found that fixes this (to get ComponentDefinitions for the row) is to save the iam document and then reopen it.
- It seems to me like there should be a way to force the refresh without needing to re-open the file (it take time to do that) - is there a method ?