AutoCAD 2007/2008/2009

Reply
New Member
vomfell
Posts: 2
Registered: ‎11-14-2012
Message 1 of 4 (559 Views)

ScaleListEdit Macro

559 Views, 3 Replies
11-14-2012 01:10 PM

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?

 

Thanks,

Kurt

*Expert Elite*
Alfred.NESWADBA
Posts: 8,867
Registered: ‎06-29-2007
Message 2 of 4 (551 Views)

Re: ScaleListEdit Macro

11-14-2012 01:56 PM in reply to: vomfell

Hi,

 

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

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
New Member
vomfell
Posts: 2
Registered: ‎11-14-2012
Message 3 of 4 (550 Views)

Re: ScaleListEdit Macro

11-14-2012 02:08 PM in reply to: Alfred.NESWADBA

Thanks Alfred,

Ok, I fixed the underscore to a dash, but I still cant figure out how to run the macro, ie. assign a button or alias.

*Expert Elite*
Alfred.NESWADBA
Posts: 8,867
Registered: ‎06-29-2007
Message 4 of 4 (547 Views)

Re: ScaleListEdit Macro

11-14-2012 02:13 PM in reply to: vomfell

Hi,

 

>> 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 :smileywink: )

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube