Author Topic: Right Click Adding Command  (Read 1206 times)

0 Members and 1 Guest are viewing this topic.

SDETERS

  • Guest
Right Click Adding Command
« on: March 22, 2010, 02:38:38 PM »
How do I add a command to the right click shortcut menu?   I have done a search I am sure I am missing something easy.  I am using Autocad 2007

I want to select some entities and then right click and then have the command "group"

Please help

Thanks

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Right Click Adding Command
« Reply #1 on: March 22, 2010, 02:49:54 PM »
Be your Best


Michael Farrell
http://primeservicesglobal.com/

SDETERS

  • Guest
Re: Right Click Adding Command
« Reply #2 on: March 22, 2010, 03:00:32 PM »
Yes it does.  Thanks for the help

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Right Click Adding Command
« Reply #3 on: March 22, 2010, 05:21:20 PM »
You're welcome...heres another little candle...to light the way


You want to modify the default shortcut menu that is displayed when you press CTRL while right-clicking (or another key combination).


Solution


To modify the shortcut menu

On the command line, enter cui
On the Customize tab of the Customize User Interface (CUI) Editor, right-click under Command List, right-click. Click New Command.
Enter a name for the new command (for example, test ctrl menu click1).
Locate the shortcut menu that you want to modify from the list of menus displayed in the upper-left of the CUI Editor (for example, Xref Object Menu).
Select the desired shortcut menu. The alias of the menu will be displayed on the right (for example, (POP513, OBJECT_XREF)).
Copy the second parameter (in this example, OBJECT_XREF) and then select your custom command under the Custom Command category in the Command list.
The macro for the original menu was the following:

 $P0=SNAP $p0=*


Change SNAP to the parameter copied in Step 5 (OBJECT_XREF) so that the macro for the new command is as follows:

$P0=OBJECT_XREF $p0=*


In the upper-left of the CUI Editor, locate Ctrl+Click.
Drag the new command that you created from the Command list to Button2.
Click the Ctrl+Click Button 2 command to verify that the new macro is displayed on the left.
Click Apply and then close the CUI Editor.

Be your Best


Michael Farrell
http://primeservicesglobal.com/