Training   Course Outlines   AutoCAD – The Basics   AutoCAD – Beyond the Basics   AutoCAD – 3D Basics   On‑Site Training   Virtual Classroom Training   CAD Bytes Webinars › Tutorials

Click the subscribe button below to receive CCAD's monthly email newsletter, which includes free tutorials, discounts and our class schedule!

CCAD's AutoCAD Tutorials

Creating Custom Command Aliases

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.

create a custom command alias

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:
SA, *SAVEALL

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

editing the acad.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.

reinitialize the acad.pgp file

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.

aliasedit command

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.

creating a custom command alias

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

using a custom command alias