Becoming a Keyboard Warrior – The Command Alias Editor

by Donnie Gladfelter on May 5, 2009

in AutoCAD

image As much as I love the enhancements to the ribbon inside AutoCAD 2010, I have a slight confession to make. I hardly click buttons, navigate menus, or even browse the ribbon to launch many of my most used commands. Instead I revert to a simpler time before such user interface enhancements – the keyboard. Call it archaic, but with minimal effort, you too can become an AutoCAD keyboard warrior! How you ask? To find the answer you need to look no further than the beloved Express Tools.

Looking to the old Express menu, the lesser known Command Alias Editor is tucked away under Express > Tools > Command Alias Editor. Users of AutoCAD 2010 do not have to look far at all as the Command Alias Editor is the biggest button on the Tools ribbon panel on the Express Tools ribbon tab. As you may have guessed, the Command Alias Editor is the secret to configuring your keyboard like an AutoCAD pro!

AutoCAD veterans are probably familiar with modifying the acad.pgp file.  For the uninitiated, the acad.pgp is really just a text file containing all of the command aliases used within AutoCAD.  For instance, there’s no L command inside AutoCAD, but you’ve probably used it to draw a line at one point or another. The entering L at the command line lets you draw a line is because the alias L is mapped to the LINE command. While AutoCAD ships with L mapped to the LINE command, with the help of the acad.pgp file you’re free to change it to anything you want.

Making things even easier (by putting a graphical interface on the acad.pgp file) is the Command Alias Editor Express Tool. With just a few clicks you can add, remove, or edit any of your command aliases.

To Edit an existing alias

Let’s say you want to remap the LA alias (LAYER command by default) to CLASSICLAYER.

  1. Launch the Command Alias Editor from the Tools panel within the Express Tools ribbon tab.
    image
  2. Find the LA alias from the Command Alias Editor, and click the [Edit] button
    image
  3. From the Edit Command Alias dialog, enter CLASSICLAYER into the AutoCAD Command textbox, and press [Ok]
    image
  4. The following warning will display. Press [Yes] if you’re ok with the edit you just made.
    image
  5. The following dialog will display to confirm the change.
    image

Add a new Alias

Let’s say you want to create an alias LLI to launch the LAYISO command.

  1. Click the [Add] button to create a new alias.
  2. From the New Command Alias dialog, enter LLI as your alias, and LAYISO as your AutoCAD command (see illustration)
    image
  3. After pressing [Ok], you will see the command listed inside the Command Alias Editor.
    image

Save Command Aliases

Once you have made the desired changes within the Command Alias Editor…

  1. Click the [Ok] button
    image
  2. You will be asked to confirm overwriting your current acad.pgp file.
    image
  3. A confirmation, letting you know the aliases you just modified have been saved, and made available to your current AutoCAD session.
    image

And that’s it! With a little imagination you can quickly conjure up all sorts of two and three character shortcuts to your most common commands.

  • Stephen Cowling

    It’s worth mentioning that when you make changes using aliasedit, they are added to the bottom of your acad.pgp file. So if you’re upgrading to a new version, or reinstalling or want to share your command aliases with other people, you can simply cut and paste this section out of the acad.pgp file.

    I also try to avoid overwriting existing commands; for example I use cla for classiclayer. This means that someone using my computer doesn’t get unexpected results.
    My all time favourite alias is t2 for text2mtext.

  • Stephen Cowling

    It’s worth mentioning that when you make changes using aliasedit, they are added to the bottom of your acad.pgp file. So if you’re upgrading to a new version, or reinstalling or want to share your command aliases with other people, you can simply cut and paste this section out of the acad.pgp file.

    I also try to avoid overwriting existing commands; for example I use cla for classiclayer. This means that someone using my computer doesn’t get unexpected results.
    My all time favourite alias is t2 for text2mtext.

  • http://twitter.com/tcschaef420 Travis Schaeffer

    To expand on this topic, about a year ago I came up with the idea to make my number keyboard on the right my favorite commands, and let me tell you it was a fantastic idea if I do say so myself. It’s perfect, the enter key is right there. My only suggestion is to do it over time. If you just assign each one a command chances are you won’t remember them all.

    Heres how I have mine setup:
    [0] -Polyline [00]-Line
    [1]-Rectangle [ 11]-Polygon
    [2] -Circle [22]-Arc
    [3]-MatchProperties
    [4]-LayMCur [44]-LayCur
    [5]-LayIso [55]-LayUnIso
    [6]- QLeader
    [7]-DimAngular
    [8]-DimAligned
    [9]-DimLinear
    [+]-Copy [++]-Copy with Basepoint
    [-]-Paste [--]-Paste as Block

    Oh yeah, I also made AE the alias for AliasEdit in case I need to make a quick change. I hope that some of you try this and let me know what you think.

  • http://twitter.com/tcschaef420 Travis Schaeffer

    To expand on this topic, about a year ago I came up with the idea to make my number keyboard on the right my favorite commands, and let me tell you it was a fantastic idea if I do say so myself. It’s perfect, the enter key is right there. My only suggestion is to do it over time. If you just assign each one a command chances are you won’t remember them all.

    Heres how I have mine setup:
    [0] -Polyline [00]-Line
    [1]-Rectangle [ 11]-Polygon
    [2] -Circle [22]-Arc
    [3]-MatchProperties
    [4]-LayMCur [44]-LayCur
    [5]-LayIso [55]-LayUnIso
    [6]- QLeader
    [7]-DimAngular
    [8]-DimAligned
    [9]-DimLinear
    [+]-Copy [++]-Copy with Basepoint
    [-]-Paste [--]-Paste as Block

    Oh yeah, I also made AE the alias for AliasEdit in case I need to make a quick change. I hope that some of you try this and let me know what you think.

  • Serge L.

    Hello! Sorry for off-topic question.

    I started doing a project with DIMASSOC set to 2, I drew lots of multileaders, copying some of them from the existing ones.

    Somewhere along the way I copied one particular multileader which was associated with an object (I didn’t know that). Now when I paste/copy those multileaders, their lines “return” to that object, no matter what the DIMASSOC variable is set to. And I found no way to disassociate multileaders from that object except by deleting it, which is a very inconvenient way, to say the least (DIMDISASSOCIATE doesn’t work on mleaders).

    Is this the AutoCAD bug, or is there a way to disassociate mleaders from objects after all?

    I use Acad2010. Thanks.

  • Serge L.

    Hello! Sorry for off-topic question.

    I started doing a project with DIMASSOC set to 2, I drew lots of multileaders, copying some of them from the existing ones.

    Somewhere along the way I copied one particular multileader which was associated with an object (I didn’t know that). Now when I paste/copy those multileaders, their lines “return” to that object, no matter what the DIMASSOC variable is set to. And I found no way to disassociate multileaders from that object except by deleting it, which is a very inconvenient way, to say the least (DIMDISASSOCIATE doesn’t work on mleaders).

    Is this the AutoCAD bug, or is there a way to disassociate mleaders from objects after all?

    I use Acad2010. Thanks.

  • http://cad-a-blog.com Brian Benton

    Keyboard keyboard keyboard! That’s why it’s there! I couldn’t agree more. I agree so much that I am trying to teach a class about this at AU 2009! I call it “Two-Handed CAD”. One on the muse and one on the keyboard. Get more done by doing less! I am admittedly biased on this because I started using AutoCAD in DOS. I was trained in DOS. I still work like I am in DOS. I love the ribbon because I hardly use it! Good post.

  • http://cad-a-blog.com/ Brian Benton

    Keyboard keyboard keyboard! That’s why it’s there! I couldn’t agree more. I agree so much that I am trying to teach a class about this at AU 2009! I call it “Two-Handed CAD”. One on the muse and one on the keyboard. Get more done by doing less! I am admittedly biased on this because I started using AutoCAD in DOS. I was trained in DOS. I still work like I am in DOS. I love the ribbon because I hardly use it! Good post.

  • http://rcd.typepad.com/ Robin Capper

    If you really want to be a keyboard warrior try this::)

    http://rcd.typepad.com/rcd/activewords-and-me.html

  • http://rcd.typepad.com/ Robin Capper

    If you really want to be a keyboard warrior try this::)

    http://rcd.typepad.com/rcd/activewords-and-me.html

Previous post:

Next post: