TheSwamp

CAD Forums => CAD General => Topic started by: SDETERS on March 22, 2010, 02:38:38 PM

Title: Right Click Adding Command
Post by: SDETERS 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
Title: Re: Right Click Adding Command
Post by: mjfarrell on March 22, 2010, 02:49:54 PM
see if this sheds any light

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=3369298&linkID=9240775 (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=3369298&linkID=9240775)
Title: Re: Right Click Adding Command
Post by: SDETERS on March 22, 2010, 03:00:32 PM
Yes it does.  Thanks for the help
Title: Re: Right Click Adding Command
Post by: mjfarrell 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.