View Full Version : Save routines
robert.1.hall72202
2005-10-25, 12:26 PM
Is it possible to have separate save routines?
I want to have toolbar buttons that can automatically save drawings into
folders I have set up for archiving.
I would like to have buttons that point to quotes, prototypes, packaging, and production folders. Then when I go to archive something I would simply hit the appropriate button.
ccowgill
2005-10-25, 01:30 PM
Based on what you are requesting and some of the other threads in the AutoLisp forum (LISP - Automatic Save that runs at set intervals) there should be a way to do it, I am not that familiar with how to do change the coding, but I am sure if you ask the author of that code (peter - it is an attached file autosave.lsp), he might be able to give you a hand with it. By adjusting the lines of codes instead of doing a save to the full path, you could change the path to send it where you want. I also would like to know how to accomplish this, I am using part the auto save lisp to create backups of drawings when ever a certain command is called for, but I would rather have the drawings go to a particular folder (a backup folder).
tyshofner
2005-10-25, 02:01 PM
This should get you started:
(defun C:SAVELOC ( / sav_path dwg_name)
(setvar "filedia" 0)
(setq sav_path "C:\\Documents and Settings\\tys\\Desktop");Set the path you want here
(setq dwg_name (getvar "dwgname"))
(command "saveas" "" (strcat sav_path "\\" dwg_name))
(setvar "filedia" 1)
(princ)
)
The double qoutes after the "saveas" in the command call accept the default file format, change if needed.
You could simply make multiple routines out of this or make a single routine that will ask a question and use conditions to set the correct path.
Ty :mrgreen:
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.