I am working in AutoCAD 2008, and find that it runs slowly due to annotative scales embedded in the drawing. I frequently use the "Scalelistedit" command to reset the scales embedded in the drawing. I would like to write a macro, or lisp routine, that runs the "Scalelistedit" command as part of the "Qsave" command. I have written the macro, but would like to assign it to my alias "Q" for "qsave" so it runs automatically upon saving. The macro string that I was trying to use is: "_scalelistedit;r;y;e;qsave", however it does not seem to function correctly. I cannot find anything on the web about how to assign this macro to the alias "Q". Any suggestions?
>> however it does not seem to function correctly
Means what? Crash? Error message? ....?
BTW: I would start the command SCALELISTEDIT with a dash ( _-SCALELISTEDIT ), otherwise you would get the dialog opened.
- alfred -
>> cant figure out how to run the macro, ie. assign a button or alias
To create a button in your menu you have to use command _CUI and use the syntax above.
If you need that as lisp then you can use the simple (command "...") type like:
(defun C:QS() (command "_-SCALELISTEDIT" "_R" "_Y" "_E")(command "_QSAVE"))
That lisp loaded brings you the new command called QS that should do what you are looking for (at least I hope so )
- alfred -