Creating a Custom Command Alias in AutoCAD 2016

Creating a Custom Command Alias in AutoCAD 2016

AutoCAD includes numerous ways to choose commands from the UI (user interface). However, you may want to choose commands by typing in keyboard shortcuts. In this tutorial I will show you several ways to add your own custom keyboard shortcuts or aliases.

The keyboard shortcuts are defined in the ACAD.PGP (AutoCAD) file or ACADLT.PGP (AutoCAD LT) file. You can view and edit these files using Notepad or the AI_EDITCUSTFILE command in AutoCAD or AutoCAD LT.

Open any AutoCAD drawing and type AI_EDITCUSTFILE to begin the command, then type acad.pgp and press ENTER to open the file.

Custom Command Alias Edit

The format of the shortcut is:

  • abbreviation, *command

To create the shortcut SA for SAVEALL enter the following in the file ACAD.PGP or ACADLT.PGP:

  • Scroll to the bottom of the file and type SA, *SAVEALL, save the file and close it.

Custom Command Alias pgp file

The acad.pgp file is initialized or loaded when a drawing is opened. To use a new shortcut in the same AutoCAD session as it was created you will need to re-initialized the acad.pgp file using the RE-INIT setting.

  • Type RE-INIT, press ENTER then type 16 and press ENTER again to re-initialize the acad.pgp file.

Custom Command Alias re-initialize

Another way to create a custom command alias from with AutoCAD is by using the Express Tool, ALIASEDIT to add, edit or remove shortcuts. You can execute the ALIASEDIT command from the Express Tools tab or by typing the command name.

Custom Command Alias AliasEdit

The ALIASEDIT command insures that proper format is used for the shortcut and the acad.pgp file is re-initialized when the window is closed.

Choose the ADD button (see previous image) and type in the alias and command as shown in the following image. Choose the OK button in this dialog and the next.

Custom Command Alias New

Now, simply type SA and press ENTER to use your custom alias for the SAVEALL command.

Custom Command Alias SaveAll

Thank you for reading about Custom Command Aliases. Please visit our AutoCAD Training page or see more of our free Tutorials.