Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

Graph Tree Reorder in Product/Assembly

SKimi

Mechanical
Joined
Feb 27, 2020
Messages
30
Location
IN
Hello, I am trying to write a method to reorder the graph tree in CATIA using CAA & VBA, (using .idl) So is there any way someone can tell me from where to begin with. I already check the existing tool "Graph Tree Reodering" but i don't find any help from it to build my own api/method. Any leads would help.
 
Hello, I am trying to write a method to reorder the graph tree in CATIA using CAA & VBA, (using .idl) So is there any way someone can tell me from where to begin with. I already check the existing tool "Graph Tree Reodering" but i don't find any help from it to build my own api/method. Any leads would help.
Hello @SKimi, Any luck with this? Even I am trying to figure out if there is a way to do the same. Been looking at CATIDescendants and checking can something be done.
 
CATIDescendants::ChangePosition works fine with features inside CATPart, but not with products inside CATProduct.
There's a specific interface for reordering products, unfortunately it's not a part of CAA client's installation.

Another option is to automate reodering via "Reorder Tree" command with WinAPI. Works pretty reliable.
 
Use the Object Browser, record macros, start with small test cases, handle errors.
 
Yes, unfortunately CATIDescendants did not add any help for me. May be using WinAPI is better option.
 

Part and Inventory Search

Sponsor

Back
Top