CCAD inc. Home Page - Experienced Drafting & Design Services, AutoCAD Training & AutoCAD Enhancements. AutoCAD Tips, Tricks and Shortcuts by CCAD inc.

AutoCAD Tips to Work Smarter - December 2003

Design AutoCAD Training Calendar AutoCAD Tips Acad Faqs
AutoLISP® Downloads About CCAD Contact CCAD Search

Customizing the Default Right-Click Menu

AutoCAD 2000 introduced several context-sensitive right-click menus. These menus display different commands and options based on the location of your cursor and the active command when the right-click is executed. Two of the right-click menus you have probably used are the CmDefault and CmEdit menus.

CmDefault
Right-click in the drawing area and this menu displays when nothing is selected and no command is active.

CmEdit
Right-click in the drawing area when at least one object is selected, no grips are selected and no command is active.

You should already be familiar with creating pull down menu before attempting to create an Image menu. Click HERE to learn about pull down menus. You should also be familiar with the AutoCAD File Search Path and installing custom menus. Click HERE to read more about locating custom files.



You can customize these menus by editing the Acad.mnu or Acad.mns file. Note: The Acad.mns file stores all of the toolbar customizations you have made. I recommend that you make a copy of your current Acad.mns file in another folder before making changes.

The Acad.mnu and Acad.mns files are typically installed in the Support folder for AutoCAD.

2000

C:\Program Files\AutoCAD 2000\Support

2000i

C:\Program Files\AutoCAD 2000i\Support

2002

C:\Program Files\AutoCAD 2002\Support

2004

C:\Documents and Settings\XXXX\Application Data\Autodesk\AutoCAD 2004\R16.0\enu\support\acad
where XXXX is your user name

You can customize the Acad.mns file using a text editor, like the Visual LISP Editor in AutoCAD. The Visual Lisp Editor can be started by selecting the menu path Tools > AutoLISP > Visual LISP Editor.

Open the Acad.mns file. Use the Find function to locate **CMDEFAULT in the file or scroll down until you locate the menu section below. This is the CmDefault section.

***POP501
**CMDEFAULT [Context menu for default mode]
ID_CMNonLast [&Repeat %s]^C^C;
[--]
ID_Cutclip [Cu&t]^C^C_cutclip
ID_Copyclip [&Copy]^C^C_copyclip
ID_Copybase [Copy with &Base Point]^C^C_copybase
ID_Pasteclip [&Paste]^C^C_pasteclip
ID_Pastebloc [Paste as Bloc&k]^C^C_pasteblock
ID_Pasteorig [Paste to Original Coor&dinates]^C^C_pasteorig
[--]
ID_U [&Undo]^C^C_u
ID_Redo [Re&do]^C^C_mredo 1
ID_Pan [P&an]'_pan
ID_ZoomRealt [&Zoom]'_zoom ;
[--]
ID_Filter [&Quick Select...]^C^C_qselect
ID_TextFind [&Find...]^C^C_find
ID_Preferenc [&Options...]^C^C_options

Character(s)

Meaning

***

Menu Section

**

Submenu Name

ID_XXXXX

Reference to Helpstrings

[]

Label, text that appear in the menu

[--]

Divider in the menu

&

Next letter is underlined. Option can be selected by pressing ALT and the letter

'

The apostrophe makes the command transparent if supported by the command

^C

ESC or cancel

_

Language translator

;

Enter


I use the Zoom All and Regenall commands frequently, so I'll add these commands to my CmDefault menu. I've added a separator between the Redo and Pan commands. I've also separated the Regenall command from the other commands in the menu. I determined the proper Helpstring reference (ID_XXXX) by searching the Acad.mns file for the command I added to the menu.

***POP501
**CMDEFAULT [Context menu for default mode]
ID_CMNonLast [&Repeat %s]^C^C;
[--]
ID_Cutclip [Cu&t]^C^C_cutclip
ID_Copyclip [&Copy]^C^C_copyclip
ID_Copybase [Copy with &Base Point]^C^C_copybase
ID_Pasteclip [&Paste]^C^C_pasteclip
ID_Pastebloc [Paste as Bloc&k]^C^C_pasteblock
ID_Pasteorig [Paste to Original Coor&dinates]^C^C_pasteorig
[--]
ID_U [&Undo]^C^C_u
ID_Redo [Re&do]^C^C_mredo 1
[--]
ID_Pan [P&an]'_pan
ID_ZoomRealt [&Zoom]'_zoom ;
ID_ZoomAll [Zoom All]'_zoom _a
[--]
ID_Regenall [Regenall]^c^c_regenall
[--]

ID_Filter [&Quick Select...]^C^C_qselect
ID_TextFind [&Find...]^C^C_find
ID_Preferenc [&Options...]^C^C_options

When you are finished making the changes, save the file and exit AutoCAD. Restart AutoCAD and the try out your new CmDefault menu. Note: If you load your Acad,mns using the Menu command you will uninstall any partial menus your may have loaded.