Create Command Aliases
 
 
 
Bottom of the Page

A command alias is an abbreviation that you 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. An alias is not the same as a keyboard shortcut, which is a combination of keystrokes, such as Ctrl-S for SAVE.

The acad.pgp file defines command aliases. You can change existing aliases or add new ones by editing acadlt.pgp in an ASCII text editor. In addition to command aliases in acad.pgp, you will also find comment lines which are preceded by a semicolon (;). Comment lines allow you to add textual information to acad.pgp, such as when or who revised the file last.

NoteBefore you edit acad.pgp, create a backup so that you can restore it later, if necessary.

To define a command alias, add a line to the acad.pgp file using the following syntax:

abbreviation,*command

where abbreviation is the command alias that you enter at the command prompt and command is the command being abbreviated. You must enter an asterisk (*) before the command name to identify the line as a command alias definition.

If you can enter a command transparently, you can also enter its alias transparently. When you enter the command alias, the full command name is displayed at the command prompt and the command is executed.

You can create command aliases that include the special hyphen (-) prefix, such as those listed here, that accesses the version of a command that displays command prompts instead of a dialog box.

BH, *-BHATCH
BD, *-BOUNDARY
NoteYou cannot use command aliases in command scripts. Using command aliases in custom commands is not recommended.

Restarting AutoCAD for Mac automatically reloads the file.

Procedure
To open the program parameters file (acad.pgp)