Peter M. Gruhn Posted May 17, 2011 Share Posted May 17, 2011 Anybody know if it's possible (and if so, how) to add a command alias through lisp? Like so? (defun C:ALIASES() (ALIAS "xl" "XLINE") (ALIAS "zap" "ERASE") (princ) ) Except it would work. Yes, I mean command alias. No, I don't want to just create a new lisp function. Link to comment Share on other sites More sharing options...
Bruce Hart Posted May 17, 2011 Share Posted May 17, 2011 Can't you just alter the PGP file for command aliases? You don't need LISP for that. Go to the Manage Pull-Down/Customize UI/Edit PGP Link to comment Share on other sites More sharing options...
JackosCAD Posted July 4, 2011 Share Posted July 4, 2011 Anybody know if it's possible (and if so, how) to add a command alias through lisp? Like so? (defun C:ALIASES() (ALIAS "xl" "XLINE") (ALIAS "zap" "ERASE") (princ) ) Peter, Attached example of how to create 'aliases' through LISP. You need to create a new 'function' (defun C:function ()) for each command you want to define. I usually type the alias I want to use on the command line first to check it hasn't already been assigned, then add MY preferred alias. Drop lisp file in -> appload -> 'Startup Suite' Content. Link to comment Share on other sites More sharing options...
Peter M. Gruhn Posted July 6, 2011 Author Share Posted July 6, 2011 Thanks for the code, Rob. Don't remember anymore why, but I really wanted to create command aliases not "aliases". Meanwhile I'ma look through your list to see what commands and aliases you think are commonly useful... Henh, you make the one "most important" change I do. Link to comment Share on other sites More sharing options...
Gary Ledgerwood Posted July 11, 2011 Share Posted July 11, 2011 Maybe I am misunderstanding what it is that you wanted to do, but in ACAD 2007 you can just type in ALIASEDIT and the editor opens. Not sure if that command still exists in the newer versions... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now