Datasheet
Book IX
Chapter 1
The Basics
of Customizing
AutoCAD
Creating and Managing Command Aliases
653
Here’s a sample of the PGP file:
J, *JOIN
L, *LINE
LA, *LAYER
The syntax for a command alias is as follows:
Alias, *AutoCAD Command Name
You should keep the alias to as few characters as possible because the
whole idea of an alias is to save you keystrokes. Between the alias and com-
mand name, you must use a comma to separate the two arguments, and the
command name must be prefixed with * (an asterisk).
AutoCAD LT doesn’t support external commands in the PGP file.
Opening the PGP file
To open the PGP file for the program, use one of the following methods:
✦ On the menu browser or menu bar, click Tools menu➪Customize➪Edit
Program Parameters (acad.pgp) or (aclt.pgp).
✦ Start Notepad, browse to the location of the PGP file, and open it.
Adding a new command alias
Follow these procedures to create a new command alias:
1. Open the PGP file by using one of the previously described methods.
2. Scroll to the bottom of the file to the User Defined Command Aliases
section.
This is where you should add your own command aliases. Command
aliases placed below this section can be migrated forward by using the
Migrate Custom Settings dialog box when you upgrade to a new release
of AutoCAD.
AutoCAD uses the last alias it finds in the file; this way, your custom
command alias can be migrated to a new release if you decide to
upgrade in the future.
3. On a new line, enter the alias you want and the AutoCAD command
that should be executed when the alias is typed at the command prompt.
A command alias uses the syntax Alias,*Command.
47 243787 bk09ch01.qxp 4/7/08 1:58 PM Page 653