×
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

Saveas to dated folder

Saveas to dated folder

Saveas to dated folder

(OP)
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?

RE: Saveas to dated folder

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

RE: Saveas to dated folder

(OP)
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

RE: Saveas to dated folder

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

RE: Saveas to dated folder

Quote:

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 http://www.resourcecad.com/forum/viewtopic.php?p=3283#3283

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.

http://www.resourcecad.com ~ for your CAD solutions

RE: Saveas to dated folder

(OP)
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!

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