Display full version of the post: 2 Stage Command Aliases

EVGA Buzzer
07.07.2010, 23:40
Hi
I have a bunch of Lisp routines that I have used for years. I am new to AutoCAD 2010 and am trying to get these command abbreviations to work. I have tried just loading the old Lisp file. It loads, but the commands abbreviations are not working. So, I decided to just put them in the pgp file. I can do things in there like redefine "C" to be COPY instead of CIRCLE. What has me stumped is how to do a 2 part command like Zoom -> Window.
 With the Lisp file working, I could type ZW <return> for Zoom -> Window. The command looked like this -
 (DEFUN C:ZW ()  (COMMAND "ZOOM" "W"))
 All of the Command Aliases in the 2010 pgp file are single keystroke commands. I want to know if I can define multiple keystroke commands like Zoom -> Window in the pgp file. How do I represent the interim return character?
Also, any ideas why after I load this old Lisp file, CAD says its loaded but none of the command abbreviations work ?
 I did search around here but could not find a solution.
 Thanks in advance !!

CarlB
08.07.2010, 04:48
"I want to know if I can define multiple keystroke"-No, an alias can only represent a single AutoCAD commandYou can achieve this with a button macro.Lisp method should work. Don't know why it won't work. What you posted should execute by typing "zw". An explanation may be because of the structure of the Lisp file, maybe there is an initial command to make oter shortcuts/functions available. Did you load it via "appload" command (or menu)?