Selection of tangent surfaces using a macro
Selection of tangent surfaces using a macro
(OP)
Hello
In one of our processes we are required to color several surfaces differently than the rest of the component (i.e. component is blue with important surfaces yellow). I have managed to write a macro that would color a surface just by clicking on it and I was wondering if there is a way of making that selection have a tangent propagation (like the "Extract" command has) but without extracting the surface as I need to change the color of the solid faces.
I would be grateful if someone could point me in the right direction.
This is what I am currently using for selection:
Thank you.
In one of our processes we are required to color several surfaces differently than the rest of the component (i.e. component is blue with important surfaces yellow). I have managed to write a macro that would color a surface just by clicking on it and I was wondering if there is a way of making that selection have a tangent propagation (like the "Extract" command has) but without extracting the surface as I need to change the color of the solid faces.
I would be grateful if someone could point me in the right direction.
This is what I am currently using for selection:
CODE --> Catscript
Dim Suprafata(0) Suprafata(0) = "Face" For i = 1 To 500 oSel.Clear Ret = oSel.SelectElement2(Suprafata, "Select Surface to Color", True) If (Ret = "Cancel") Then Exit Sub
Thank you.





RE: Selection of tangent surfaces using a macro
Regards,
Jenia Ladkov
RE: Selection of tangent surfaces using a macro
You start a for cycle and don't have a next.
You also only selects a face nothing more...
Why you don't select the features that creates those faces, and them paint them?
Tiago Figueiredo
Tooling Engineer
Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...
RE: Selection of tangent surfaces using a macro
indocti discant et ament meminisse periti
RE: Selection of tangent surfaces using a macro
itsmyjob Unfortunately I do not have it but I have noticed there is something similar in the machining module. I might be able to use something from there.
Thank you