Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

CATIA VBA Collapse Specification tree

Status
Not open for further replies.

NaWin55

Mechanical
Mar 21, 2020
97
Hello all

i want create a macro to collapse specification tree completely, i tried with following code

CATIA.StartCommand "Collapse All"

i used this method after checking one of the thread from here

but it is not working for some parts with big specification tree it will collapse tree features but not geosets will get
collapsed

is there any other way to do this which works for everything


Thanks

 
Replies continue below

Recommended for you

hmmm maybe with something like this:
Activate tree manipulation, select top node, then combine multiple sendkey DOWN until you reach the bottom (or END) ... (you can check if the selection change) then use again sendkey LEFT to collapse and UP to go up the tree until you reach the top.

Eric N.
indocti discant et ament meminisse periti
 
@itsmyjob
thanks for the replay
but how to activate tree manipulation and select top node
i have not worked much on tree manipulation and SpecsAndGeomWindow these kind of things
can you give some hints how to activate tree manipulation and selecting top node

thank you
 
catia.activewindow.layout = catWindowSpecsOnly

As this will hide the geometry, it does activate the spec tree.

Please check coe.org 2018 COE University presentation about the subject.

link

Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor