Autoload menu files

kalderson

Usenet Archive
Joined
Feb 3, 2004
Messages
4
Reaction score
0
We create custom pulldowns in my office, as well as custom buttons. I would like to keep the pulldowns in a file separate from the ACAD.MNU file because we edit the pulldowns occasionally. Everything works fine, except when AutoCAD is restarted, it reverts back to the standard configuration where only the standard menu file and the bonus menu file is loaded. How can I get these other menu files to load automatically every time AutoCAD starts?
 
create your own menu file, then use "menuload" to partial load your custom menu hth Mark

kalderson said:
We create custom pulldowns in my office, as well as custom buttons. I
would like to keep the pulldowns in a file separate from the ACAD.MNU file because we edit the pulldowns occasionally. Everything works fine, except when AutoCAD is restarted, it reverts back to the standard configuration where only the standard menu file and the bonus menu file is loaded. How can I get these other menu files to load automatically every time AutoCAD starts?
 
I load the menus using the "menuload" command, but they disappear when I exit AutoCAD. I need them to always be there. Ideas?
 
(if (not (menugroup "yourmenu"))
(command "menuload" "yourmenu.mnc" (princ))
)

kalderson said:
We create custom pulldowns in my office, as well as custom buttons. I
would like to keep the pulldowns in a file separate from the ACAD.MNU file because we edit the pulldowns occasionally. Everything works fine, except when AutoCAD is restarted, it reverts back to the standard configuration where only the standard menu file and the bonus menu file is loaded. How can I get these other menu files to load automatically every time AutoCAD starts?
 
Just so you know, load it off your network.

Rudy Tovar said:
(if (not (menugroup "yourmenu"))
(command "menuload" "yourmenu.mnc" (princ))
)

would like to keep the pulldowns in a file separate from the ACAD.MNU file because we edit the pulldowns occasionally. Everything works fine, except when AutoCAD is restarted, it reverts back to the standard configuration where only the standard menu file and the bonus menu file is loaded. How can I get these other menu files to load automatically every time AutoCAD starts?
 
I did that, but when I exit AutoCAD and restart, the menus do not load, I have to load them manually. My goal is to have them loaded automatically when AutoCAD is started.
 
Pause for a stupid question........ If your custom menu is in a seperate folder from your acad.mnu, did you add that folder to your support file search path? Just a hunch....
 
I use mystartup, that gets load in each drawing.

;;Files is called ACAD.LSP
(defun S::STARTUP
(prompt "\nCopyright 1998, Cadentity.")
(princ)
)
(setq s::startup (append s::startup mystartup))

(defun mystartup (/)
(if (not (menugroup "yourmenu"))
(command "menuload" "yourmenu.mnc" (princ))
)
;...etc.
(princ)
)
 
Just to clarify it a little clearer, the ACAD.LSP is on the local machine, and the another file is referenced on the network.
 
#1 Does your custom menu have an .mnl file? If so, are there any errors in the file?

#2 You _do_ have a menu group name assigned in the custom menu, right? e.g.
***MENUGROUP=Mine
 

Latest threads

Back
Top