Master tipster Leonid Nemirovsky has created a small LISP routine that will toggle the AutoCAD menu bar on and off in a simple way.
“Simply add this code to acad.lsp or acaddoc.lsp, or any MNL file, or whatever you use to load your AutoLISP automatically:
(defun c:mb()
(setq mb1 (getvar "menubar"))
(cond
((= mb1 0)(setvar "menubar" 1))
((= mb1 1)(setvar "menubar" 0))
)
(princ)
) “Type MB at the Command prompt to toggle the menu bar on/off.” Notes from Cadalyst Tip Reviewer Brian Benton: The menu bar in AutoCAD is that bar across the top of your screen that holds the command menus in it. Many users like to have it on so they can access commands and tools without going through the ribbon or toolbars. This routine makes it really easy to turn it off or on.
Load the routine and type MB on the Command line. It will toggle the menu bar on or off, depending on its current state. If you turn the menu bar on or off frequently, this command will help you out. Set it up to load automatically into AutoCAD, create a custom command from it, and add an icon for it to the quick access toolbar, or any toolbar, palette, panel, etc., to make it an easy and quick on/off toggle. This routine uses the system variable Menubar. This variable has two settings: 0 (for off) and 1 (for on). If you don’t want to use this command, you can type Menubar on the Command line and enter the setting you want. |