See the top rated post in this thread. Click here

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: Edit Command Aliases and add new ones

  1. #11
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,505
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Quote Originally Posted by Larry Deigh View Post
    Thanks Ted. So how do I access the "alias editor".
    Assuming you have express tools, on the command line type "aliasedit"
    (see my reply on post #3)

  2. #12
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,505
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Quote Originally Posted by Larry Deigh View Post
    These look great. Do I just add them, as written, to the acadlt.pgp, user defined list of command aliases?
    Not sure what you're talking about.
    If you mean RK's suggestion on the LISP routines, follow his detailed instructions, they do not go in the PGP file.
    You place them in a special directory, create an acaddoc.lsp and have them loaded in every session.

    You can only re-define commands in the PGP file, not run LISP.

    Another option for this is to simply edit the PGP file (instead of using the "alias editor".
    Make a copy of it first in case you screw it up.

    Code:
    (startapp "notepad" (findfile "acad.pgp"))
    HTH

  3. #13
    Member
    Join Date
    2016-01
    Posts
    11
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Thanks. I will try the exact instructions. Regarding my question and your alternate instructions, YES I was referring to changing the .pgp file.
    I had to download my ACAD software onto my laptop but it didn't include Express Tools so Ill have to get that too.

  4. #14
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,505
    Login to Give a bone
    1

    Default Re: Edit Command Aliases and add new ones

    Quote Originally Posted by Larry Deigh View Post
    Thanks. I will try the exact instructions. Regarding my question and your alternate instructions, YES I was referring to changing the .pgp file.
    I had to download my ACAD software onto my laptop but it didn't include Express Tools so Ill have to get that too.
    You don't need express tools if you are just editing the "acad.pgp" file, the "aliasedit" is an express tool that edits it for you.
    If you just type on the command line (or copy and paste this line) (startapp "notepad" (findfile "acad.pgp"))
    It will bring up your acad.pgp file in notepad, and you change/add alias' as needed at the bottom of the file using the same format the OOTB alias' are.

    Once you edit the pgp file, save it, and go into Autocad; then on the command line type "reinit" and select PGP file, you should have your new alias'.

    Hope that all makes sense..

  5. #15
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    1

    Default Re: Edit Command Aliases and add new ones

    Another note.

    @tedg 's suggestion of doing (startapp "notepad" (findfile "acad.pgp")) was right on target and this is what I do too.

    But there is a GUI element in the stock AutoCAD Ribbon (Manage > Edit Aliases > Edit Aliases) that *should* do the same thing.
    No express tools, or remembering code needed.


    tn.png
    R.K. McSwain | CAD Panacea |

  6. #16
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,505
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Quote Originally Posted by rkmcswain View Post
    Another note.

    @tedg 's suggestion of doing (startapp "notepad" (findfile "acad.pgp")) was right on target and this is what I do too.

    But there is a GUI element in the stock AutoCAD Ribbon (Manage > Edit Aliases > Edit Aliases) that *should* do the same thing.
    No express tools, or remembering code needed.


    tn.png
    Thanks RK,
    That is something I wasn't aware of, interesting.
    I don't use the Ribbon, still running 2014 with Classic interface.

    I'm curious though, this thread refers to AutoCAD 2011, is that interface available for that release?
    I assumed express tools was the only way to get the "alias editor".

    Thanks for the added info.

  7. #17
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Good point @tedg.

    According this this image, it was in 2011 LT, so I'm presuming it was in AutoCAD 2011 also.

    But you did make me look

    Manage.png
    R.K. McSwain | CAD Panacea |

  8. #18
    Member
    Join Date
    2016-01
    Posts
    11
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Now I understand that there are 2 parts to the answer. To change Copy to C you just need to change the .pgp file BUT to change the "Zoom, enter, Window, enter" to a single command of "ZW, enter" requires creating a small macro.

    So I changed the .pgp file by adding a suffix of .old then created a new one with my new commends added to the end but when I tried to save it, it would not allow me and said I was not authorized. I checked my account type and I am the administrator. Any Thoughts?

  9. #19
    Certified AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    5,069
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    1) what folder was the new acad.pgp being created in?

    2) There is no need to do 'zoom enter W enter' as a macro... The ZOOM command automatically defaults to Window mode. The "W" option is still there for legacy purposes -- eg those people who have been maintaining the same customization for years.

  10. #20
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Edit Command Aliases and add new ones

    Quote Originally Posted by Larry Deigh View Post
    Thanks Ted. So how do I access the "alias editor".
    Express / Tools / Comand Alias Editor or type ALIASEDIT.

    BTW, when you've finished and closed the editor, if you type REINIT and pick the PGP File check box and OK, you won't have to restart acad (as Ted said earlier).

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Command Aliases for Custom Commands
    By mockdeep in forum AutoCAD General
    Replies: 3
    Last Post: 2007-08-02, 01:39 PM
  2. Edit Command Aliases via CUI
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2007-07-25, 12:46 PM
  3. Command aliases not working
    By lambertm in forum AutoCAD General
    Replies: 13
    Last Post: 2005-08-02, 02:30 PM
  4. Customize command aliases
    By kyle.86575 in forum AutoCAD Customization
    Replies: 3
    Last Post: 2005-05-06, 01:42 PM
  5. Command Aliases
    By frank.burnham in forum ACA General
    Replies: 2
    Last Post: 2004-10-26, 06:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •