Message 1 of 21
Using ILogic to to control BOM structure in assembly

Not applicable
07-11-2016
04:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I need help to control the BOM structure in the assembly with ILogic to make parts in the assembly Phantom and Normal by an If rule.
someone said this would work but i cannot figure out if it's possible or even if it's the right rule
'get the reference to the component by its name Dim oOcc As ComponentOccurrence = Component.InventorComponent("INNER_STIFFENING_RING_1") ' set BOM structure to Phantom oOcc.Definition.BOMStructure = BOMStructureEnum.kPhantomBOMStructure
'oOcc.Definition.BOMStructure = BOMStructureEnum.kNormalBOMStructure 'oOcc.Definition.BOMStructure = BOMStructureEnum.kPurchasedBOMStructure 'oOcc.Definition.BOMStructure = BOMStructureEnum.kInseparableBOMStructure
Hope you can help.
with best regards Mikael Nanke.