Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Product reordering in CATIA V5 VBA

Product reordering in CATIA V5 VBA

Product reordering in CATIA V5 VBA

Hello all,
if you have already tried to find a way how to reorder specification tree in CATIA V5 VBA, you know that it is almost impossible. Functions for reordering of CATIA tree has not yet been exposed to CATIA API. There are a few tools available on the internet and maybe you already use some of them. If you want to know how they work, you may find your answer here:


http://scripts4all.eu/txtoncurve/ - Text along a curve for Catia V5

RE: Product reordering in CATIA V5 VBA

Thanks Tesak, I did not know this way to interact with windows... Learned something today :)

a full code version is available from weagan22 is here

for COE member, my (humble) presentation about win API is here


Eric N.
indocti discant et ament meminisse periti

RE: Product reordering in CATIA V5 VBA

Hi All

I have downloaded the exe from weagan22 link
and checked I have the .dll linked in CATIA V5 R21 but I get an error message
Failed to run graph tree reordering command

I have also Extracted the full Project Code but only have CATIA Internal VBA and this
does not load the Forms etc....

Can you help - as this is such a needed utility

RE: Product reordering in CATIA V5 VBA

People are still looking for this, huh? That was some garbage code I wrote back then; first thing I ever programmed, haha.

RE: Product reordering in CATIA V5 VBA

Although I do have English V5 R21 I also get an error running the exe 😣

RE: Product reordering in CATIA V5 VBA

That code was written for R25. They changed the name of the reorder tool command slightly (not sure exactly the change as I don't have R21) I think it was something like "Graph tree Reorder" to "Graph tree reordering" which I think is why you are getting the error. The code isn't running the reorder tool in CATIA and thus isn't finding the reorder window that opens.

RE: Product reordering in CATIA V5 VBA

Thanks for the explanation

RE: Product reordering in CATIA V5 VBA

I modified the code line
CATIA.StartCommand("Graph tree Reordering")
to have Capital Letter 'R' on the word Reordering and the exe now works smile

RE: Product reordering in CATIA V5 VBA


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


eBook – How to Choose the Correct Corrosion Testing Method
When designing a metal component, engineers have to consider how susceptible certain alloys are to corrosion in the final product’s operating environment. In a recent study by NACE (National Association of Corrosion Engineers), it was estimated that the direct and indirect costs of corrosion in the United States is approximately 6.2% of the GDP. In 2016, that cost exceeded $1 trillion dollars for the first time. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close