×
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

Macro for open and save a file with different name

Macro for open and save a file with different name

Macro for open and save a file with different name

(OP)
Greeting Guys,

I would like to generate a macro which will save a file with existing name and adding a suffix to it. The location of Save As should be the same for that folder.

E.g.

Suppose I want to save a file 84440-904, it is located in C:\Desktop\Folder\

I want to save it as 84440-904-Alu in the same directory as given above.

I would really appreciate ur help on this guys, i have like 800 parts to rename and link drawings to them.

Warm regards,
Akhtar Aziz

RE: Macro for open and save a file with different name

This is a perfect example of why a macro is never the solution to the problem and always seeks to fix the symptoms of the problem, in this case the necessity to rename over 800 parts and re-link the drawings.

Don't think I'm just a jerk though I honestly can't assist you writing the correct macro to do this task.

RE: Macro for open and save a file with different name

@akhtar07
This thread has some good code to start with for creating a macro to do save as:
http://www.eng-tips.com/viewthread.cfm?qid=347231

Check this post for re-linking drawing views:
http://www.eng-tips.com/viewthread.cfm?qid=356588

There are several different ways to go about writing a macro to rename a large number of CATIA documents.

Regards,
Drew Mumaw
http://www.textsketcher.com/
http://www.drewmumaw.com/

RE: Macro for open and save a file with different name

(OP)
hi drewmumaw,

that script looks really nice but it's having the same lacking ... I don't want to have some particular location for those files, I want to open them and macro saves it where it was before.

I did one macro for PDF, it auto-generates the PDF and closes the document as well but you have to set one particular path for that.

Can it be done like macro saves it where it was before?

Warm regards,
Akhtar Aziz

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