Message 1 of 3
Can't check .BOMStructure in current Inventor's Operation both Part's & Assembly's Documents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone,
I'm trying working on a simple iLogic Code:
Dim nDOC As Document = ThisApplication.ActiveDocument
MessageBox.Show(nDOC.ComponentDefinition.BOMStructure, "Checking?", MessageBoxButtons.OK, MessageBoxIcon.Information)
And a similar
Dim nDOC As Document = ThisDoc.Document
MessageBox.Show([Enum].GetName(GetType(Inventor.BOMStructureEnum), nDOC.ComponentDefinition.BOMStructure), "Checking?", MessageBoxButtons.OK, MessageBoxIcon.Information)
My problem: When I open Inventor with new session, and working with an assembly - the ilogic code run in the correct result, but when I created a new part and run the rule - I got the problem!. Its also happened if I started with Part first and then created a new assembly (the rule only applied with the first document's type/Inventor's session)
I'm using Inventor 2018.3.8 Updated, I checked, the problem same for previous version of Inventor. with Version 2020, the Rule runs in the correctly!!!
Please, help me. I really posted: https://forums.autodesk.com/t5/inventor-customization/how-to-get-and-change-quot-default-bom-structu... . Thanks!