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.
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
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
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
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