Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide and show products/parts without using Selection with any API?

Status
Not open for further replies.

Milie

Computer
Joined
Nov 27, 2013
Messages
12
Location
FR
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
 
Hi,

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top