AutoCAD - One Key Commands

AutoCAD - One Key Commands

jdfnnl
Advocate Advocate
1,231 Views
4 Replies
Message 1 of 5

AutoCAD - One Key Commands

jdfnnl
Advocate
Advocate

I seem to remember the possibility configuring commands to run via a single button press. Described as either a hotkey or shortcut, is there a way to natively define this functionality within AutoCAD, or would I look more toward a separate macro script using a program like AutoHotkey?

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: Automating question for AutoCad Lite ]

0 Likes
1,232 Views
4 Replies
Replies (4)
Message 2 of 5

paullimapa
Mentor
Mentor

why not just edit the acad.pgp file?

if you don't have Express Tools, then just locate acad.pgp by typing following on commandline:

(findfile"acad.pgp")

This will show you where the file is and then you can open it with any text editor like Windows Notepad to modify.

This link describes how to modify if you have Express Tools:

https://xlncad.com/autocad-command-alias/

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 5

imadHabash
Mentor
Mentor

Hi,

You can also try Action macros which really will increase productivity by automating repetitive tasks. >> Click <<

 

Imad Habash

EESignature

0 Likes
Message 4 of 5

sutherland-
Collaborator
Collaborator

Hi @jdfnnl 

 

  1. Go to the "Customize" tab of the ribbon and click the "Keyboard Shortcuts" button.

  2. In the "Customize User Interface" dialog box, select the "Shortcut Keys" tab.

  3. Scroll down the list of commands and find the command that you want to assign a shortcut to.

  4. Click the "Shortcut Keys" column next to the command and press the key or combination of keys that you want to use as the shortcut.

  5. Click the "Add" button to assign the shortcut to the command.

  6. Repeat this process for any additional commands that you want to assign shortcuts to.

  7. Click the "Close" button to save the changes.

You can also use a program like AutoHotkey to create macro scripts that can run commands with a single button press. AutoHotkey is a free, open-source program that allows you to create custom scripts using a simple programming language. You can use AutoHotkey to create scripts that run specific commands or series of commands in AutoCAD or any other Windows application.


Please click on Accept Solution so other community members can see how to solve the issue.
Also, consider giving a Like to the comments that you feel helped you.

Best regards,
Level  sutherland-

Member
0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

@jdfnnl wrote:

I seem to remember the possibility configuring commands to run via a single button press. ....


Do you mean a single button press without using Enter or the space bar to "register" it?  If so, command aliases in the .pgp file won't do, because they do require Enter/space, just like the full command names.  You can do key combinations with Ctrl or Alt or Shift plus another key, within limits, but let's say you want L to be used in that way for the LINE command -- is something like Ctrl+L or Alt+L [or whatever] any easier/faster than L followed by Enter/space?  And if you set L to start a LINE command just on pressing it without "registering" that in some way, how could you ever use the LAYER command, or LOFT, or LINETYPE, or... ?  You would have a LINE command invoked before you got to the next letter in the command name.

Kent Cooper, AIA