Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
I need an ilogic the components on the part list reference will be red, the reference will be removed the components again as the material
component = reference = red
component = normal = color as material
Trigger is the changeover to reference or from reference back
The rule in the appendix can be almost :-(, can make the ilogic someone please
Here is the rule and the Video inventor-ilogic-farbe-referenzierter-bauteile-andern
' set a reference to the assembly component definintion. Dim oAsmCompDef As AssemblyComponentDefinition oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'Iterate through all of the occurrences Dim oOccurrence As ComponentOccurrence For Each oOccurrence In oAsmCompDef.Occurrences 'check occurence BOM Structure and component definition BOM Structure If oOccurrence.BOMStructure = BOMStructureEnum.kReferenceBOMStructure Or _ oOccurrence.Definition.BOMStructure = BOMStructureEnum.kReferenceBOMStructure Then 'set color Component.Color(oOccurrence.Name) = "Red" End If Next
thx @GÖÖÖ and @kurtis
Solved! Go to Solution.