Changing appearance of all surfaces with specific appearance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Current situation
I've got an assembly file (.iam) that puts multiple part files (.ipt) thogether in a certain configuration.
These Parts consist of a single solid body and i defined their appearance in the partfile itself.
let's take a partfile of a flange for example, which has 3 appearances;
- Black appearance for the oil seal
- Steel appearance for flange surface
- Default appearance for the remaining surfaces
The problem
The remainign surfaces are set to default appearance, but in reality this can be painted in a desired color.
In my final assembly, after configuration is done, I would like to change the color of all surfaces of all parts that have the 'default' appearance, and be able to change it to another appearance, for example 'red'.
When i overwrite the appearance in my assemblycode using
oACD.Occurrences.ItemByName(pFlens & ":1").Appearance = oAssetCustom
The entire flange is changed;
But the desired result is:
Strange behaviour
Something strange i encountered when adjusting appearances in partfiles themselfes is the following:
i manually selected surfaces and gave these surfaces a specific appearance, while all other surfaces are left at the default setting. When i select the entire body and change the appearance as a whole, only the default surfaces are changed. This behaviour is not consistent with the assembly code in which the entire body including all surfaces are changed, not just the default ones.