Using ILogic to to control BOM structure in assembly

Using ILogic to to control BOM structure in assembly

Anonymous
Not applicable
5,690 Views
20 Replies
Message 1 of 21

Using ILogic to to control BOM structure in assembly

Anonymous
Not applicable

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.

0 Likes
5,691 Views
20 Replies
Replies (20)
Message 21 of 21

davis.j
Advocate
Advocate

*Deleted*

0 Likes