CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
Plex.Earth connects AutoCAD and Google Earth
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closed2 Stage Command Aliases

 Post Reply Post Reply
Author
EVGA Buzzer View Drop Down
Newbie
Newbie


Joined: 07.Jul.2010
Location: United States
Using: AutoCad 2010
Status: Offline
Points: 1
Direct Link To This Post Topic: 2 Stage Command Aliases
    Posted: 07.Jul.2010 at 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 !!

EVGA Buzzer
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 08.Jul.2010 at 04:48
"I want to know if I can define multiple keystroke"
-No, an alias can only represent a single AutoCAD command

You 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)?

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,063 seconds.