AutoCAD

How to Add Shortcut Key in AutoCAD?

Adding Shortcut Keys in AutoCAD

Creating shortcut keys in AutoCAD allows for a more efficient workflow, enabling users to execute commands quickly with simple keyboard combinations. Below is a step-by-step guide on how to add shortcut keys in AutoCAD.

Step 1: Access the Customization Interface

  1. Open AutoCAD and navigate to the Manage tab on the ribbon.
  2. Look for the Customization panel and click on Edit Aliases.

Step 2: Modify the PGP File

  1. The PGP file, which contains command aliases, will open in a text editor like Notepad.
  2. Identify the section where command aliases are specified. This section follows a specific syntax, which typically consists of the alias followed by the command it represents.
  3. To add a new shortcut, type your desired alias using the following syntax:

    ALIAS_NAME, COMMAND_NAME

    For example:

    L, LINE

    This alias would enable the user to type ‘L’ to invoke the LINE command.

Step 3: Save Changes

  1. After you’ve added your new alias, save the changes in Notepad by clicking File then Save.
  2. Close the text editor to return to AutoCAD.

Step 4: Refresh the PGP File

  1. In the AutoCAD command line, type REINIT and hit Enter.
  2. In the dialog that appears, check the box for PGP File.
  3. Click OK to confirm the changes.

Adding Keyboard Shortcuts

If you want to create specific keyboard shortcuts that utilize combinations of keys:

  1. Open the Customize tab in the right sidebar.
  2. Under the Command List pane, find the command you wish to assign a shortcut to.
  3. Drag and drop the command onto the Shortcut Keys node.
  4. Select the newly created shortcut key.
  5. In the Properties pane, you’ll find a field labeled Press new shortcut key.
  6. Click in this box and press the key combination you want to assign (e.g., Ctrl + J).

Step 5: Verify Shortcut Keys

  1. To confirm that the shortcut works, type the combination into the command line.
  2. If correctly set up, the command should execute as intended without any issues.

Frequently Asked Questions

What types of commands can I create shortcuts for in AutoCAD?
You can create shortcuts for any command available in AutoCAD, including drawing commands like LINE, CIRCLE, and POLYGON, as well as editing commands such as TRIM and COPY.

Can I use function keys as shortcuts in AutoCAD?
Yes, function keys (like F1, F2, etc.) can be assigned as shortcuts in AutoCAD. You can set them up in the same way as regular key combinations through the customization options.

Is it possible to remove or change an existing shortcut key in AutoCAD?
Absolutely. You can return to the Shortcut Keys node, select an existing shortcut, and either modify its key combination or delete it entirely to free up that key for a different command.

About the author

Wei Zhang

Wei Zhang

Wei Zhang is a renowned figure in the CAD (Computer-Aided Design) industry in Canada, with over 30 years of experience spanning his native China and Canada. As the founder of a CAD training center, Wei has been instrumental in shaping the skills of hundreds of technicians and engineers in technical drawing and CAD software applications. He is a certified developer with Autodesk, demonstrating his deep expertise and commitment to staying at the forefront of CAD technology. Wei’s passion for education and technology has not only made him a respected educator but also a key player in advancing CAD methodologies in various engineering sectors. His contributions have significantly impacted the way CAD is taught and applied in the professional world, bridging the gap between traditional drafting techniques and modern digital solutions.