Change surface color of multi-body solid part
Change surface color of multi-body solid part
(OP)
Hello All,
I am able to change PartBody color with a VBA code but having difficulty to change the surface color of multi-body solid part, which has multiple bodies joined together.
When I want to change the "multi-body-PartBody"s color to white, the visible color of all surfaces did not change at all, unless you use the mouse and go to property of each surface on the body and change its color from there manually.
Any suggestions, code syntax, or CATIA command is much appreciated.
Thank you in advance
Quin
I am able to change PartBody color with a VBA code but having difficulty to change the surface color of multi-body solid part, which has multiple bodies joined together.
When I want to change the "multi-body-PartBody"s color to white, the visible color of all surfaces did not change at all, unless you use the mouse and go to property of each surface on the body and change its color from there manually.
Any suggestions, code syntax, or CATIA command is much appreciated.
Thank you in advance
Quin





RE: Change surface color of multi-body solid part
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Change surface color of multi-body solid part
here the face is white even if all bodies and feature above have other color.
indocti discant et ament meminisse periti
RE: Change surface color of multi-body solid part
Property visProperties.SetRealColor will change surface color or fill color?
As I understand visProperties.SetRealColor only changes surface color...is it right?
Quin
RE: Change surface color of multi-body solid part
indocti discant et ament meminisse periti
RE: Change surface color of multi-body solid part
The above part has multiple surfaces (complex part but single body) with blue color and i tried to change to white with visProperties.SetRealColor 0, 0, 0, 1 but the color did not change to white at all.
However, if I use the same visProperties.SetRealColor 0, 0, 0, 1 to change surfaces on a simpler part then color changes as wanted.
Any idea?
Quin
RE: Change surface color of multi-body solid part
priority is given to face, then shape, then body.
So if all faces are blue, you can change shape or body to white you will still see the solid blue.
indocti discant et ament meminisse periti
RE: Change surface color of multi-body solid part
Quin