iLogic to change color of component of a sub-assembly

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If the component is on the top level, I can use this to change its color:
Componment.Color("TopLevelPart:1") = "Red"
The same does not work when the part is in a sub-assembly. How can I do the same for each part in an assembly?
I have tried,
Componment.Color("SubAssemblyPart:1") = "Red"
and
Componment.Color("TopLevelAssembly", "SubAssemblyPart:1") = "Red"
But neither changes the SubAssemblyPart.
iProperties.PartColor = "Red" works as a rule run in a part file, but not an assembly.
For an assembly, another option is to use a rule function:
iProperties.Value("filename.ipt", "property tab name", "property name")
But I can't figure out if "PartColor" is the correct "property name" or what the right value for "property tab name" is.
Thanks!