hosting

Create Command Aliases

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.

An alias can be defined for any AutoCAD command, device driver command, or external command. The second section of the acad.pgp file defines command aliases. You can change existing aliases or add new ones by editing acad.pgp in an ASCII text editor (such as Notepad). To open the PGP file, click Assist Customize Edit Program Parameters (acad.pgp)Click Tools menu Customize Edit Program Parameters (acad.pgp). The file can also contain comment lines preceded by a semicolon (;).

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 command alias section of 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 customization files is not recommended.
If you edit acad.pgp while AutoCAD is running, enter reinit to use the revised file. You can also restart AutoCAD to automatically reload the file.

No comments:

Post a Comment