Message 1 of 5
Visibility based on bom structure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I made this code to make some parts visible from the bom structure, but it doesn't quite work.
I hide all parts and then run this rule but it doesn't work.
I can't figure out what's wrong
'Visible some components Dim oOccs As ComponentOccurrences = oADef.Occurrences For Each oOcc As ComponentOccurrence In oOccs If oOcc.Name = "SewGearmotor"Then If oOcc.BOMStructure = BOMStructureEnum.kDefaultBOMStructure Then oOcc.Visible = True ElseIf oOcc.BOMStructure = BOMStructureEnum.kReferenceBOMStructure Then oOcc.Visible = False End If End If Next