'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.
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
Did you searched this forum ? I believe you can find something .
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
RE: 'rename tree elements' macro
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
RE: 'rename tree elements' macro
If you want just to apply some prefixes you can use also Pattern Name in Save Management commnand.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
RE: 'rename tree elements' macro
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.