Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This is a very good site. Please keep it running. Thanks and wishing a great health and success for the site and its owners..."

Geography

Where in the world do Eng-Tips members come from?
vaina (Marine/Ocean)
2 Jul 12 6:31
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.
ferdo (Mechanical)
2 Jul 12 6:49
Hi,

Did you searched this forum ? I believe you can find something .

Regards
Fernando

https://picasaweb.google.com/102257836106335725208

vaina (Marine/Ocean)
2 Jul 12 7:05
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.
vaina (Marine/Ocean)
2 Jul 12 9:11
Just learnt VBA script protection is ridiculous, now I can study the above script. Thanks anyway wink
ferdo (Mechanical)
2 Jul 12 9:32

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

vaina (Marine/Ocean)
2 Jul 12 9:54
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.

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!

Back To Forum

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