Customizing AutoCAD Command Aliases with PGP Files for Faster Drafting
Complete guide to editing the acad.pgp file, creating custom command shortcuts, distributing aliases across teams, and troubleshooting conflicts with LISP and ribbon commands.
Customizing AutoCAD Command Aliases with PGP Files for Faster Drafting
I'm a firm believer that customizing your PGP file is the single highest-ROI thing you can do in AutoCAD. I've watched drafters save 20-30 minutes a day just by switching to aliases that match their workflow. The defaults like L for LINE and C for CIRCLE are fine, but the real gains come when you build aliases around how you actually work. Let me show you how I set up mine.
Understanding the PGP File
The Program Parameters file (acad.pgp) is a plain text file that maps abbreviations to commands. Each line follows this format:
ALIAS, *COMMAND
For example:
L, *LINE
C, *CIRCLE
CO, *COPY
The alias is case-insensitive. The asterisk (*) before the command name is required. Everything after * is treated as the command string sent to the AutoCAD command line.
Locating the PGP File
The PGP file location varies by AutoCAD version and user profile:
%APPDATA%\Autodesk\AutoCAD 2026\R24.0\409\Support\acad.pgp
The 409 segment is the locale code for English (US). For other locales, replace with the appropriate code (407 for German, 40C for French, 411 for Japanese).
To find the exact path on your system, type in AutoCAD:
(findfile "acad.pgp")
This returns the full path to the active PGP file.
Editing the PGP File Within AutoCAD
AutoCAD provides a built-in editor for the PGP file:
ALIASEDIT
This opens the PGP file in your default text editor. After saving changes, run:
REINIT
Check "PGP File" in the Re-initialization dialog and click OK. This reloads the PGP file without restarting AutoCAD.
Alternatively, type:
EXPRRESSPGP
This command (available in AutoCAD 2024+) directly reloads the PGP file without the Re-init dialog.
Adding Custom Command Aliases
Basic Aliases
Add these lines to your acad.pgp for common drafting commands that lack default aliases:
; === Custom Drafting Aliases ===
DL, *DATALINK
DV, *DATAVIEW
FL, *FILTER
MA, *MATCHPROP
OP, *OPTIONS
PU, *PURGE
RC, *RECOVER
SE, *SELECT
TC, *TOOLPALETTES
XR, *XREF
Aliases for Express Tools
Express Tools are not aliased by default. Add shortcuts for the ones you use frequently:
; === Express Tool Aliases ===
BC, *BLOCKTOXREF
FF, *FLATTEN
GS, *GATETEXT
MS, *MSTRETCH
NC, *NCOPY
TC2, *TCASE
WE, *WIPEOUT
XL, *XLIST
Aliases with Command Options
You can include command-line options in the alias by appending them after the command name:
; === Aliases with Options ===
A1, *AUDIT Y
PLW, *PLINEWID
ZD, *ZOOM D
ZE, *ZOOM E
ZP, *ZOOM P
The alias A1 runs AUDIT and automatically answers Y to the "Fix errors?" prompt. ZE zooms to extents, ZP zooms to the previous view.
Aliases for LISP Commands
If you have custom AutoLISP commands defined in your acaddoc.lsp or .mnl files, you can alias them:
; === Custom LISP Aliases ===
FFX, *FIXXREFS
NPS, *NEWPROJECTSETUP
RCC, *RECYCLECLEAN
Note that the LISP command must be defined with C: prefix in the LISP file (e.g., (defun c:FIXXREFS ...)), but the alias references only the command name without the C: prefix.
Migrating from Other CAD Software
If you are transitioning from another CAD platform, mapping familiar aliases reduces the learning curve significantly.
From MicroStation
; === MicroStation Aliases ===
F, *FENCE
PL, *PLACE
AC, *ARC
EL, *ELLIPSE
TC, *TEXT
From SolidWorks
; === SolidWorks Aliases ===
DR, *DIMRADIUS
DD, *DIMDIAMETER
DA, *DIMANGULAR
DL2, *DIMLINEAR
From BricsCAD
BricsCAD shares the DWG format and many commands with AutoCAD, so most aliases transfer directly. However, BricsCAD-specific commands like QUAD and DRAGGEN need custom LISP definitions to work in AutoCAD.
Distributing Custom Aliases Across a Team
For teams working on the same project standards, a shared PGP file ensures everyone uses the same shortcuts.
Network Deployment
-
Create a master
acad.pgpfile on a network share (e.g.,\\server\cad-standards\acad.pgp). -
On each workstation, add the network path to the Support File Search Path:
OPTIONS > Files tab > Support File Search Path > AddAdd:
\\server\cad-standards -
Remove the local
acad.pgpfrom the user's support path, or rename it toacad.pgp.bakso AutoCAD finds the network version first.
Deployment via Script
For large-scale deployment, use a login script to copy the master PGP file to each user's support directory:
@echo off
copy "\\server\cad-standards\acad.pgp" "%APPDATA%\Autodesk\AutoCAD 2026\R24.0\409\Support\acad.pgp" /Y
Add this to the user's logon script in Active Directory Group Policy.
Merging PGP Files
If users have personal aliases that should coexist with the team standard, use the MERGEPGP command (available via the Express Tools):
MERGEPGP
This command prompts you to select a secondary PGP file and merges its entries into the active PGP file, skipping duplicates.
Troubleshooting Alias Conflicts
Alias Not Working
If typing an alias does nothing or executes the wrong command:
- Check for duplicates: Search the PGP file for the same alias defined twice. The last definition wins.
- Check for LISP conflicts: A LISP command defined with
C:ALIAStakes priority over a PGP alias with the same name. Search your.lspfiles for(defun c:Lor similar. - Check the Support File Search Path: If multiple
acad.pgpfiles exist in different support paths, AutoCAD uses the first one found. Type(findfile "acad.pgp")to confirm which file is active. - Reload the PGP file: Run
REINITand check "PGP File."
Alias Executes Ribbon Command Instead
In AutoCAD 2024+, the ribbon interface can intercept command input. If typing an alias opens a ribbon panel instead of executing the command:
- Type
INPUTSEARCHOPTIONSin the command line. - Set
INPUTSEARCHDELAYto500(milliseconds). - Uncheck "Search content at cursor."
- Set
INPUTSEARCHOPTIONSto0to disable the search-as-you-type feature entirely.
This prevents the ribbon from intercepting short abbreviations before they reach the command line.
Alias Works in One Drawing but Not Another
If an alias works in some drawings but not others, the drawing may have a custom LISP file loaded via its .mnl companion file that overrides the alias. Check for .mnl files in the same directory as the drawing.
Best Practices for Alias Design
- Keep aliases to 1-3 characters: Longer aliases defeat the purpose of speed. If you need 4+ characters, the command is not used frequently enough to warrant an alias.
- Avoid conflicting with existing defaults: Before adding an alias, test it in a clean AutoCAD session to ensure it does not override a default you rely on.
- Document your custom aliases: Add a comment block at the top of your PGP file listing all custom additions with their purpose:
; === Custom Aliases Added 2026-06-25 === ; A1 - AUDIT with auto-yes ; ZE - Zoom Extents ; ZP - Zoom Previous ; FF - Flatten (Express Tool) - Back up before editing: Always copy
acad.pgptoacad.pgp.bakbefore making changes. A syntax error in the PGP file can prevent all aliases from loading. - Test after deployment: After distributing a new PGP file, have one user on each team test their critical aliases before rolling out company-wide.
Source Verification
More Autocad Guides
deployment
Configuring ADSKFLEX Options File for AutoCAD Network License Management
15 min read
troubleshooting
Resolving AutoCAD Fatal Error 0x0024 During Graphics Rendering
12 min read
performance
Optimizing AutoCAD Performance with Large Assemblies and Heavy Drawings
13 min read
troubleshooting
Recovering Corrupted DWG Files: A Complete Disaster Recovery Workflow
14 min read
Related Performance Guides
Similar performance content for other CAD tools
3ds Max
•performance
3ds Max Large Scene Optimization: Proxies, Instances, and Memory Management
10 min
3ds Max
•performance
3ds Max Viewport Lag on High-End PC: GPU Driver, Display, and Scene Optimization Fixes
9 min
Ansys
•performance
Ansys Mesh Quality Metrics: Element Distortion Diagnosis and Fix Guide
10 min
Archicad
•performance
ArchiCAD File Bloat and Corruption: Compress, Repair, and Audit Workflow
8 min