Monday, May 6, 2013

Creating Keyboard Shortcuts in AutoCAD Electrical

Having started using AutoCAD at release 10 I’m partial to hotkeys. However the marking menu has broke the right click menu/hotkey ability. For example I would right click on a component and then press ‘E’ and Edit Component would trigger from the right click menu. I know the marking menu eliminates the need for the hotkey… simply drag straight up and the command starts. But hey, old habits die hard right.
I decided to map some custom hotkeys. Most of the default alias keys are commands that are not used in AutoCAD Electrical. Take ‘E’ for example. By default this is Erase. It may make more sense to have that as Delete Component or Edit Component. Below are the steps needed to modify AutoCAD’s aliases. You may wish to keep the default aliases and add and ‘E’ in front of all your new Electrical aliases. Like EE for Edit  Component and ED for Delete Component

Method 1

imageIf you have the Express Tools installed, the Command Aliases command is the easiest way to find, and edit, this file. If the Express Tools are not installed you will need to run through the Add/Remove programs and check the Express Tools box.

Be sure to File\Export a copy as a backup before you start messing the file… you know, just in case.
image

This dialog is pretty straight forward. Find the alias you wish to edit and press Edit. Press Add to add a new one.
To find the Electrical command name hover over the icon and the full command name should be in the resulting tool tip.
image
Another way to find a command name… after starting the command press esc and then right click somewhere in model space. Select Recent Input from the right click menu.
image

Method 2

If Express Tools is not an option then here is the manual method.
  • Make a backup of the following file
    • C:\Users\<username>\appdata\roaming\autodesk\autocad electrical 2013\r19.0\enu\support\acad.pgp
    image
  • Open acad.pgp with a text editor like Notepad or Wordpad
    • Make any necessary changes.
    image 
  • REINIT or restart Electrical to test the new aliases.
image

No comments:

Post a Comment