Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Graph Tree Reordering multiple components with one click 3

Status
Not open for further replies.

CAD2015

Computer
Jan 21, 2006
1,932
US
Hi,

Is it possible to move in a Product 2-20 components with one click?
At the moment I can't move more than one with one click.......
(I have a Product with 25 identical components and wanted to place all of them at the bottom of the graph tree)

Thanks!

CAD 2015
 
Replies continue below

Recommended for you

Calin,

How have you build that tool?
How could I learn that?

CAD 2015
 
Hello,

The tool opens the default command for reorder in CATIA and manipulates the interface using Win32 API: i.e. it does all clicks that an user would do (for large assemblies it is extremely beneficial as it "clicks" thousands of times for you).

Programming this was quite difficult (I am not a programmer) as I found out that CATIA windows (keep in mind that every button, every form, every text field, everything is a window according to Win32 API) do not behave as one would expect simply because CATIA has its own built-in events and triggers that do stuff when an user clicks somewhere in the interface. And you have to deal with them.

So, to answer your question, assuming you know CATIA API very well, start with Win32 API: getting windows handles (FindWindow, FindWindowEx) and their hierarchy, and sending messages to those handles (SendMessage or PostMessage).

Hope it helps,
Calin
 
Great answer, thanks a lot Cilici!

[2thumbsup]

CAD 2015
 
It is showing the following error.
tool_wm5evm.png
 
A. Use English interface in order to have the command name as detailed in the error message.
B. You must be in Assembly Design workbench
 
Tried this but couldn't get it to reorder.
I'm probably using it wrong, could someone please explain how to work it.

cheers
Alan
 
@Alan: Try with simple assemblies (like 10-20 instances, easy to track) and please use the default settings for Tree Customization (PartNumber (InstanceName)).
Also, make sure you only have one instance of CATIA or, if multiple are present, make sure the Reorder app is "seeing" the correct one.

Calin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top