I'm trying to programmatically examine catparts (containing geometry and FTAs) and isolate some surfaces and wireframe inside, using CATVBA or catvbs.
My question is "how to programmatically isolate surfaces wireframe in CATVBA?" or more precisely "how to programmatically implement the isolate
command?"
the long explanation
Take this example: a Flag Note attached to a surface. You have this links
FlagNote --> Surface --> Surface Construction Elements
If you "isolate" the surface, you only remove the link to its construction elements. But note that the link coming from the FTA is preserved.
FlagNote --> Surface (isolated) -/- Surface Construction Elements
By now, I don't know a method to do this programmatically. So I decided in CATVBA to achieve the same goal by cutting/pasting the surface as result. But this is the final result
FlagNote (broken link) -/- Surface (cut/paste as result) -/- Surface Construction Elements
the link coming from the FTA is also broken, and that is the problem!
TD;DR
"how to programmatically implement the isolate
command in CATVBA?"
what I tried so far
My first crude attempt was cut/pasting the HybridShapes with mode CATPrtResultWithOutLink
But this is not reliable and breaks other links (as you see in the long explanation)
I would instead use the Isolate
command but I can't find the corresponding API. I also see is that the command itself doesn't work in the "power input" box nor in a VBA script like that
...
sel.add myHybridShape
CATIA.StartCommand "Isolate"