×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

Jobs

'rename tree elements' macro

'rename tree elements' macro

'rename tree elements' macro

(OP)
Hi everybody,

I need a macro to rename the tree elements. I tried to record a macro but it seems that CATIA can't record all actions, so I obtain only empty macros. After a Google search I found this script, but I'd like to develop and fit it for my purposes. Unfortunately a password protects the code, so I have no idea about the vba commands involved. Please, can you help me? A simple script is enough, just to understand the structure of the renaming operations.

Thanks for your attention, regards.

RE: 'rename tree elements' macro

(OP)
Hi Ferdinando,

Thanks for your reply. I'm already analyzing this two threads (the only ones I found here):

http://www.eng-tips.com/viewthread.cfm?qid=323961
http://www.eng-tips.com/viewthread.cfm?qid=93135

but I'm not still able to put the puzzle pieces together. The first thread is a little out of theme, I'm trying something with the second one - I see you replied there. But I need to rename elements with new prefixes or other, not like the file names. I'm working with it.

RE: 'rename tree elements' macro

(OP)
Just learnt VBA script protection is ridiculous, now I can study the above script. Thanks anyway wink

RE: 'rename tree elements' macro

(OP)
Thanks anyway, but I need a renaming macro for different purposes. I was not so detailed before because I thought the strategy was similar to the guidelines found in other threads in this forum.
I use Structural Functional System Design and Structural Functional Object Design workbenches for ship design. I'm not sure, but plates and stiffeners are loaded as bodies or features or something else inside a single part, so I need a flexible tool for renaming all these (generic) sub-elements. The script quoted above is helpful, I only have to edit some details for my purposes - and now the password to edit the code is not a problem anymore.

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!


Resources