Message 1 of 3
iLogic rule for BOM Structure executing wrong Enum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am struggling with a rule to control BOM structure Default or Reference. Here below the rule is, when insulation is True it needs to be set BOM structure at default (51969) but it showing the 51972 value when it's set to run.
Can someone please help?
If Insulation = True Then Component.Visible("Cladding_1300") = True oCompOcc = Component.InventorComponent("Cladding_1300") oCompOcc.BOMStructure = 51969 MessageBox.Show(oCompOcc.BOMStructure) Else If Insulation = False Then oCompOcc = Component.InventorComponent("Cladding_1300") oCompOcc.BOMStructure = BOMStructureEnum.kReferenceBOMStructure Component.Visible("Cladding_1300")= False End If
Thanks,
Bhavik
Bhavik Suthar