Incorrect BOMStructure until BOM is initialized

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I did a search on this issue and didn't see a post but sorry if this issue has been mentioned before. I have an assembly containing normal and phantom parts. I have code that will read the structured BOM view and write the data to a text file. The issue I am running into is that phantom parts are still being written out even if I've coded it to only write out "standard" BOMstructure components. Here's the weird thing. If I start the BOM tool once before I run the code, it will work. The phantom parts are ignored. The code that I am writing is using Apprentice and will be batching this process. But the issue still exist if I use Inventor. I am reproduce the issue using an iLogic rule.
Attached is an example dataset to show the issue. Follow the steps to see the issue. Am I missing something simple?
1. Open the assembly.
2. Run the Bom Data rule
3. Notice the Qty value for BOMStructureTest1, the qty is 3. Also notice there will be three message boxes.
4. After the message boxes, start the BOM command and switch to the Structured tab. Notice only 2 components are listed and BOMStructureTest1 has a qty of 2.
5. Close the BOM and rerun the Bom Data rule. The message boxes are now correct.
Any insight will be greatly appreciated.
Thanks!