AfraLisp Blog

The AutoLisp/Visual Lisp/VBA Resource Website

AfraLisp Blog

Home Newsletter Utter Rubbish Coding Tips AutoCAD Tips Contact Downloads WAUN

Loading Partial Menu's

Fire up AutoCAD and follow these instructions :

 

  • Select "Tools" "Customise Menu's" from pulldown.
  • Select "Browse"
  • Change file type to "Menu Template (*.MNU)"
  • Open Directory where TEST.MNU resides.
  • Select "TEST.MNU" then press "OK"
  • Select "Load".
  • Answer "Yes" when prompted.
  • Click on "Menu Bar" tab.
  • From "Menu Group" pulldown select "TEST".
  • In the "Menu's" section, select "Test Menu".
  • Press "Insert" to add it to the Menu Bar.
  • Select "Close"

Un-Loading Partial Menu's

To Un-Load Partial Menu's do the following :

 

  • Select "Tools" "Customise Menu's" from pulldown.
  • In the Menu Groups list, highlight the menu that you wish to remove.
  • Select "Unload".
  • Select "Close".

The menu will be removed.

Menu files can also be loaded and un-loaded programmatically.
The methods of doing this will be covered later in the tutorial.

Just a couple of comments on Loading and Un-Loading menu's.
When loading a menu file, AutoCAD compiles the .MNU file into .MNC and .MNR files. The .MNC file is a compiled version of the .MNU file and the .MNR file contains the bitmaps used by the menu.
AutoCAD also generates a .MNS file. This is an ASCII file that is initially the same as the .MNU file but is modified by AutoCAD each time you make changes to the menu file through the interface. (such as modifying the contents of a toolbar.

HINT : If you have modified a menu file and it does not display correctly, or gives you other hassles, then delete the .MNC, .MNR and .MNS files. This forces the menu to re-compile. 


Back to Tutorial.
 
The AutoLisp/Visual Lisp/VBA Resource Website

Copyright 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website