badbad214
New member
- Sep 14, 2010
- 3
thread560-129853
Catia V5 R18 on XP, VBA
Hello,
I am working in the context of a CATProduct which does contain many levels of "assemblies" (components). Those components have different attribute such as the assembly type and the status (Shared SH, Release RL and Frozen FR in my case). I order to help designer to filter their catproduct on the attributes for DMU purpose I created an user form which allow the designer to color all assemblies at the FR status or all assemblies RL status.... so once the designer has selected what he wants the data is colored, the color is applied on the assembly level which color the parts by inheritance. So the color of of the assembly is changed from "No Color" to a RVB color (SelectionX.SetVisibleColor()). Now if I want the designer to be able to proceed again and color another selection I need to be able to remove the colors I just applied. That is for the context of what I am trying to do.
The question:
What is the VB code to apply a "No Color" value on an part which has been selected? (properties-> graphic-> graphic properties-> color-> "No Color).
I hope I was clear in the description of my issue (I know how to do the selection just I do not know how to remove the color I just applied on an assembly without closing the catprodut).
Any help would be appreciated.
Thank you
Regards
Alexandre Bessy
Catia V5 R18 on XP, VBA
Hello,
I am working in the context of a CATProduct which does contain many levels of "assemblies" (components). Those components have different attribute such as the assembly type and the status (Shared SH, Release RL and Frozen FR in my case). I order to help designer to filter their catproduct on the attributes for DMU purpose I created an user form which allow the designer to color all assemblies at the FR status or all assemblies RL status.... so once the designer has selected what he wants the data is colored, the color is applied on the assembly level which color the parts by inheritance. So the color of of the assembly is changed from "No Color" to a RVB color (SelectionX.SetVisibleColor()). Now if I want the designer to be able to proceed again and color another selection I need to be able to remove the colors I just applied. That is for the context of what I am trying to do.
The question:
What is the VB code to apply a "No Color" value on an part which has been selected? (properties-> graphic-> graphic properties-> color-> "No Color).
I hope I was clear in the description of my issue (I know how to do the selection just I do not know how to remove the color I just applied on an assembly without closing the catprodut).
Any help would be appreciated.
Thank you
Regards
Alexandre Bessy