Datasheet

Creating and Managing Command Aliases
652
9. You can use the default name and description or make any necessary
changes before importing the profile.
You also have the option of including the paths stored in the user profile
file or use the paths from the current profile. To use the paths from the
user profile file that is being imported, click Include Path Information.
10. Click Apply & Close to complete the importing of the user profile.
A new user profile based on the imported user profile file is added to the
Available Profiles list; if a profile with the same name as the one speci-
fied in the Name text box of the Import Profile dialog box already
existed, the options of the existing profile are updated.
11. Click OK to exit the Options dialog box.
Creating and Managing Command Aliases
Command aliases provide a quick way for you to access a command from
the command prompt without being forced to type the entire command
name. Command aliases are stored in the Acad.pgp (or Aclt.pgp) file, which
is a plain text file stored by default under C:\Documents and Settings\<user
name>\Application Data\Autodesk\AutoCAD 2009\R17.2\enu\Support (or
C:\Documents and Settings\<user name>\Application Data\Autodesk\
AutoCAD LT 2009\R14\enu\Support). You often hear these files referred to
as the program’s PGP (Program Parameters) files. An example of a command
alias is L, which is used to start the LINE command.
Editing the PGP file
Because a PGP file is a plain text file, it can be edited by using a text editor
such as Notepad. Two different formats of aliases can be created: external
commands and command aliases. External commands allow you to start
applications such as Notepad outside AutoCAD, and command aliases allow
you to start commands found inside AutoCAD such as the LINE command.
Typically, you use command aliases more often than external commands.
The PGP file allows you to define your own command aliases or modify the
ones that come with AutoCAD. Adding any new command aliases to the
bottom of the PGP file is the best practice: If you do, AutoCAD can identify
which ones you have added when you upgrade to a future release of
AutoCAD. One thing to note is that if two command aliases define the same
alias, the latter one defined in the file is the one that AutoCAD recognizes
when it is entered at the command prompt.
47 243787 bk09ch01.qxp 4/7/08 1:58 PM Page 652