Hide and show products/parts without using Selection with any API?
Hide and show products/parts without using Selection with any API?
(OP)
Hello,
I'm working on CATIA v5 on a project where we need to hide and show a lot of parts of a model.
Do you know any way to hide and show products/parts without using Selection with any API? c#, VBS, VBA ?
I tried already a lot of stuff but I don't manage to do it. I worked a lot on scene cause I saw it possible but unfortunately I don't find any method to refresh the view in a scene without using weird tricks (like launching the command Apply Assembly on Scene and emulating "Enter" button) that are really to slow.
That's after several days of search I'm coming here to ask for your help.
Thank you a lot!
Emilie
I'm working on CATIA v5 on a project where we need to hide and show a lot of parts of a model.
Do you know any way to hide and show products/parts without using Selection with any API? c#, VBS, VBA ?
I tried already a lot of stuff but I don't manage to do it. I worked a lot on scene cause I saw it possible but unfortunately I don't find any method to refresh the view in a scene without using weird tricks (like launching the command Apply Assembly on Scene and emulating "Enter" button) that are really to slow.
That's after several days of search I'm coming here to ask for your help.
Thank you a lot!
Emilie





RE: Hide and show products/parts without using Selection with any API?
I saw in your first code regarding this problem that you are creating a scene for each node in the spec tree (I believe).
You can hide all nodes then show each node one by one. Of course, before you need to make a collection of nodes names, you can also create a text file with these names and read it according to your purposes...
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...