- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have borrowed a few lines of iLogic code to change all parts to the same colour from here:
Rule:
Dim num As Long
num = ThisApplication.ActiveDocument.ComponentDefinition.Occurrences.Count
jj=1
While jj<num+1
Component.Color(ThisApplication.ActiveDocument.ComponentDefinition.Occurrences.Item(jj).Name) = paint_colour
jj=jj+1
End While
iLogicVb.UpdateWhenDone = True
This rule user a multi value text user parameter where I have input a group of colours.
I then apply this rule to my form for control of the final assembly.
Is there a way to alter this rule or better yet add another rule to over ride so that 3 parts of my assembly can be changed to another colour?
I have an assembly with ~200 parts and all same colour except for 3 parts. These three parts are the same colour as well. I can use specific files names in the rule as these will never change.
I would like to have a rule for this so I can add it to my form that I use to control size parameters and colours.
Thanks
Sean
Solved! Go to Solution.