![]() |
![]() |
||||||||||||||||||||||||||||||
| AutoCAD Tips to Work Smarter - December 2003 |
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
Customizing the Default Right-Click MenuAutoCAD 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 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.
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
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
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. | |||||||||||||||||||||||||||||||