Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saveas to dated folder

Status
Not open for further replies.

adamwildon

Structural
Jul 13, 2005
10
Hi does anyone know how to save the current AutoCAD drawing into a dated folder using a script involving filedia 0 command is there some sort of standard windows scrip that might work?
 
Replies continue below

Recommended for you

Trying to understand... You want to automatically create a folder with the current date and save any file you work on there?

"Everybody is ignorant, only on different subjects." — Will Rogers
 
well what I would like to do is come up with a way of when issuing a drawing saving it automatically to a dated folder. I'm working with AutoCAD 2004 and not everyone that I deal with can open them therefore I would also like AutoCAD to save it to a release 2000 drawing, that's the easy bit. The way I would like my code to work is
qsave
filedia 0
saveas
2000
\\curent directory\dd/mm/yy\drawingname.dwg
-plot
qsave
filedia 1
close

Do you know of some sort of code that I could add to create the dated folder?

Also is there a way that I could bind all of the xrefs no matter what the name is.

I can go through the -xref command but the wildcard * giving me the option for 'all' does not work as I would like the pull down menu to be able to save the file into a dated folder then bind the xrefs ready for emailing. Hope you can help.

Adam
 
autocad has already quite a few of those scripts out for saving in older versions. about doing the dated folder you would have to some how find a way to get that information to the command line to use in a script.

I dont think you can though....

Have you used the etransmit? It sends everything associated with the file, xrefs, text and plot, even zips it up for you and fires off outlook with that drawing attached to a new mail message.

Alex
 
Hi does anyone know how to save the current AutoCAD drawing into a dated folder using a script involving filedia 0 command is there some sort of standard windows scrip that might work?

This might be a good starting point for you. It doesn't do exactly as you describe but it's aRoutine to save a (WBlocked) copy of the current drawing as a "working version" (-WV) while continuing IN the current drawing.
i.e. you don't need to do a "saveas" then reopen the original

WV Drawings are saved in the same directory as the original with "-wvX" appended to the filename, where X= dwg increment.

e.g. "C:\temp\MyDwg.dwg" will be saved as:
"C:\temp\MyDwg-wv1.dwg" then
"C:\temp\MyDwg-wv2.dwg" etc

See
It is provided as source code so you can modify it to suit your requirements, or if you wish, we could modify it for you. See our website for more details.

~ for your CAD solutions
 
Many thanks for that! however that is a lisp routine, I am currently using LT2004 which does not have the facility. I'll try chopping the code around a bit and see if I can get it to work, if I do I'll let you know. Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor