Continue to Site

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!

'rename tree elements' macro 1

Status
Not open for further replies.

vaina

Marine/Ocean
Jul 11, 2011
16
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.
 
Replies continue below

Recommended for you

Hi Ferdinando,

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


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.
 
Just learnt VBA script protection is ridiculous, now I can study the above script. Thanks anyway [wink]
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor