Share

About Creating Command Aliases

Product Documentation
Intermediate

A command alias is an abbreviation of a command name, which you can enter at the Command prompt instead of entering the entire command name.

For example, you can enter c instead of circle to start the CIRCLE command.

NoteA command alias is not the same as a keyboard shortcut, which is a combination of keystrokes, such as CTRL+S for SAVE.

The program parameters (PGP) file is used to store command alias definitions. You can change existing command aliases or add new ones by editing acad.pgp (acadlt.pgp in AutoCAD LT) in an ASCII text editor (such as Notepad on Windows or TextEdit on Mac OS). In addition to command aliases, you can also add comment lines to add descriptive information. Start comment lines with a semicolon (;).

A command alias has the following syntax:

abbreviation,*command
abbreviation

Command alias that you enter at the Command prompt.

command

AutoCAD command name being abbreviated.

You must enter an asterisk (*) before the command name to identify the line as a command alias definition.

You can create command aliases that include the special hyphen (-) prefix, such as the following example, to access the version of a command that displays command prompts instead of a dialog box.

-LA, *-LAYER
-CH, *-CHANGE
NoteYou cannot use command aliases in script files, and they are not recommended for use in macros used by the user interface.

If you edit the PGP file while the program is running, use the REINIT command to reload the revised file. Restarting the program will automatically reload the PGP file.


Was this information helpful?