How to change command shortcut key?

How to change command shortcut key?

Anonymous
Not applicable
1,147 Views
8 Replies
Message 1 of 9

How to change command shortcut key?

Anonymous
Not applicable

Hi all,

I am having a hard time with the fact that keyboard key C triggers Circle command and i would like it to trigger Copy command. I searched online solutions and tried editing Aliases PGP file but it didn't work.

 

Any idea what i need to do so when i type C on keyboard, it triggers Copy command instead of Circle?

Thanks! 

0 Likes
1,148 Views
8 Replies
Replies (8)
Message 2 of 9

cadffm
Consultant
Consultant

It works if you edit the right file, Command: AI_EDITCUSTFILE

 

Restart AutoCAD or use REINIT  to update the alias memory

 

 

 

 

Sebastian

0 Likes
Message 3 of 9

pendean
Community Legend
Community Legend
When editing the PGP file, you have to put what you want at the very bottom of the file. Then save and close.

Then either restart AutoCAD or use REINIT command, select PGP, and OK.

Which of these steps did you miss by chance?

0 Likes
Message 4 of 9

Anonymous
Not applicable

Thank you both for replies. Not sure what i am doing wrong. I added:

 

; -- User Defined Command Aliases --
; Make any changes or additions to the default AutoCAD command aliases in
; this section to ensure successful migration of these settings when you
; upgrade to the next version of AutoCAD. If a command alias appears more
; than once in this file, items in the User Defined Command Alias take
; precedence over duplicates that appear earlier in the file.
; **********----------********** ; No xlate ; DO NOT REMOVE


; For upgrade add the following lines to the new pgp file provided


CI, *CIRCLE
C, *COPY

 

This portion of the file is located at the very bottom of PGP file. After REINIT and selecting PGP file or CAD restart, keyboard C still triggers Circle command. CI also triggers Circle command. Weird.

0 Likes
Message 5 of 9

Anonymous
Not applicable

Workaround that helped me to resolve this situation and it works. There is some problem with letter C.

K,  *COPY

 

Thanks!

0 Likes
Message 6 of 9

pendean
Community Legend
Community Legend
You might have a LISP or third party loaded function that is using the C letter: they trump PGP entries.
0 Likes
Message 7 of 9

cadffm
Consultant
Consultant

I guess you just ADDED your two lines..?

And i guess you didn't delete the old definition line for C

also i guess you added your line over the original lines..

 

 

Acad reads the file from top to down, so the original override your definition 😉

Sebastian

0 Likes
Message 8 of 9

Anonymous
Not applicable

I only added as a last line (very bottom of the Acad.PGP file):

K*, COPY

and it works.

 

I think bottom of the file overrides whatever is prior, which makes sense as i have some general programming experience. I presume previous comment (other lisp routines or other custom functions overrides the pgp file custom definitions) was spot on.

0 Likes
Message 9 of 9

pendean
Community Legend
Community Legend
Last-read governs over first-read in PGP: original is ignored.
0 Likes