• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • AutoCAD 2007/2008/2009 DWG Format

    Reply
    New Member
    Posts: 2
    Registered: ‎11-14-2012

    ScaleListEdit Macro

    297 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

    Please use plain text.
    *Expert Elite*
    Posts: 6,634
    Registered: ‎06-29-2007

    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
    -------------------------------------------------------------------------
    Please use plain text.
    New Member
    Posts: 2
    Registered: ‎11-14-2012

    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.

    Please use plain text.
    *Expert Elite*
    Posts: 6,634
    Registered: ‎06-29-2007

    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
    -------------------------------------------------------------------------
    Please use plain text.