autoload menu
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
autoload menu

 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD
Author Message
Chuck
Guest





Posted: Thu Nov 17, 2005 5:10 pm    Post subject: autoload menu Reply with quote

I have a quick question regarding the two attached files. I have a
"Buffalo" menu with a menuitem "holes" with the heading "Buffalo Hole
Inserts".
I am attempting to automatically load this menu (in it's absence) using the
acad.lsp with the menuitem "holes" in the P11 position. What am I doing
wrong?
Thanks in advance.
BTW the menu loads but the pulldown doesn't appear. If I load the menu
manually the pulldown appears in the last position.
-------------------------------------------------------------------------------------------
acad.lsp


;This file loads the RAM Drafting Menus.
;See acaddoc.lsp for the loading of the RAM Drafting LISP routines.


(if (not (menugroup"ram"))
(progn
(command "menuload" "ram.mns")
(menucmd "P10=+RAM.RAM")
)
)

(if (not (menugroup"buffalo"))
(progn
(command "menuload" "buffalo.mns")
(menucmd "P11=+holes.buffalo")
)
)

(if (not (menugroup"cadlibdu"))
(progn
(command "menuload" "cadlibdu.mns")
)

(princ)

-------------------------------------------------------------------------------------------------------

//
// AutoCAD menu file - S:\ram customization\buffalo.mnc
//

***MENUGROUP=Buffalo

***POP11
**Holes
[Buffalo Hole Inserts]
[--]
[9/16 Diameter
Hole]^C^C-layer;make;drill3;color;red;;;circle;\diameter;9/16;-layer;set;0;;-hatch;select;l;;p;s;;
[11/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;11/16;-layer;set;0;;-hatch;select;l;;p;s;;
[13/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;13/16;-layer;set;0;;-hatch;select;l;;p;s;;
[15/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;15/16;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[1-1/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.0625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-3/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.1875;-layer;set;0;;-hatch;select;l;;p;s;;
[1-5/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.3125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-7/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.4375;-layer;set;0;;-hatch;select;l;;p;s;;
[1-9/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.5625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-11/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.6875;-layer;set;0;;-hatch;select;l;;p;s;;
[1-13/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.8125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-15/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.9375;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[3/4 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;.75;-layer;set;0;;-hatch;select;l;;p;s;;
[7/8 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;.875;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[1" Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/4 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.25;-layer;set;0;;-hatch;select;l;;p;s;;
[1-3/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.375;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/2 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.5;-layer;set;0;;-hatch;select;l;;p;s;;
[1-5/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-7/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.875;-layer;set;0;;-hatch;select;l;;p;s;;
[2" Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;2;-layer;set;0;;-hatch;select;l;;p;s;;
[--]

//
// End of AutoCAD menu file - S:\ram customization\buffalo.mnc
//
-------------------------------------------------------------------------------------------------------------

Back to top
CarlB



Joined: 27 Sep 2005
Posts: 52

Posted: Thu Nov 17, 2005 9:27 pm    Post subject: re:autoload menu Reply with quote

I'm taking a guess,...

maybe the acad.lsp loads the menu groups before AutoCAD loads it's main menu so it gets "overwritten". If you load the menus from a s::startup operation you may get around this. or maybe I'm off track. Smile
Back to top
View user's profile Send private message
Peter Ruehle
Guest





Posted: Fri Nov 18, 2005 7:16 am    Post subject: Re: autoload menu Reply with quote

Rather than use lisp, you could just use the menuload command, browse to the
mns file and it will load. It will then be saved with the current profile
(options) and will load with every session.

"Chuck" <chuck@nospam.ca> wrote in message
news:m12ff.46897$Z8.42159@read2.cgocable.net...
Quote:


I have a quick question regarding the two attached files. I have a
"Buffalo" menu with a menuitem "holes" with the heading "Buffalo Hole
Inserts".
I am attempting to automatically load this menu (in it's absence) using
the acad.lsp with the menuitem "holes" in the P11 position. What am I
doing wrong?
Thanks in advance.
BTW the menu loads but the pulldown doesn't appear. If I load the menu
manually the pulldown appears in the last position.
-------------------------------------------------------------------------------------------
acad.lsp


;This file loads the RAM Drafting Menus.
;See acaddoc.lsp for the loading of the RAM Drafting LISP routines.


(if (not (menugroup"ram"))
(progn
(command "menuload" "ram.mns")
(menucmd "P10=+RAM.RAM")
)
)

(if (not (menugroup"buffalo"))
(progn
(command "menuload" "buffalo.mns")
(menucmd "P11=+holes.buffalo")
)
)

(if (not (menugroup"cadlibdu"))
(progn
(command "menuload" "cadlibdu.mns")
)

(princ)

-------------------------------------------------------------------------------------------------------

//
// AutoCAD menu file - S:\ram customization\buffalo.mnc
//

***MENUGROUP=Buffalo

***POP11
**Holes
[Buffalo Hole Inserts]
[--]
[9/16 Diameter
Hole]^C^C-layer;make;drill3;color;red;;;circle;\diameter;9/16;-layer;set;0;;-hatch;select;l;;p;s;;
[11/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;11/16;-layer;set;0;;-hatch;select;l;;p;s;;
[13/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;13/16;-layer;set;0;;-hatch;select;l;;p;s;;
[15/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;15/16;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[1-1/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.0625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-3/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.1875;-layer;set;0;;-hatch;select;l;;p;s;;
[1-5/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.3125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-7/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.4375;-layer;set;0;;-hatch;select;l;;p;s;;
[1-9/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.5625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-11/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.6875;-layer;set;0;;-hatch;select;l;;p;s;;
[1-13/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.8125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-15/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.9375;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[3/4 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;.75;-layer;set;0;;-hatch;select;l;;p;s;;
[7/8 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;.875;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[1" Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/4 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.25;-layer;set;0;;-hatch;select;l;;p;s;;
[1-3/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.375;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/2 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.5;-layer;set;0;;-hatch;select;l;;p;s;;
[1-5/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-7/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.875;-layer;set;0;;-hatch;select;l;;p;s;;
[2" Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;2;-layer;set;0;;-hatch;select;l;;p;s;;
[--]

//
// End of AutoCAD menu file - S:\ram customization\buffalo.mnc
//
-------------------------------------------------------------------------------------------------------------



Back to top
Chuck
Guest





Posted: Fri Nov 18, 2005 5:10 pm    Post subject: Re: autoload menu Reply with quote

A friend found the problem for me.
The proper command for menucmd was "P11=+buffalo.holes" not
"P11=+holes.buffalo"
In order to avoid the confusion I've renamed the menu item from holes to
buffalo.
Now my menucmd is "P11=+buffalo.buffalo"
Thanks for your help.

"Peter Ruehle" <archer1157@verizon.net> wrote in message
news:rX9ff.27845$9T4.17224@trnddc04...
Quote:
Rather than use lisp, you could just use the menuload command, browse to
the mns file and it will load. It will then be saved with the current
profile (options) and will load with every session.

"Chuck" <chuck@nospam.ca> wrote in message
news:m12ff.46897$Z8.42159@read2.cgocable.net...


I have a quick question regarding the two attached files. I have a
"Buffalo" menu with a menuitem "holes" with the heading "Buffalo Hole
Inserts".
I am attempting to automatically load this menu (in it's absence) using
the acad.lsp with the menuitem "holes" in the P11 position. What am I
doing wrong?
Thanks in advance.
BTW the menu loads but the pulldown doesn't appear. If I load the menu
manually the pulldown appears in the last position.
-------------------------------------------------------------------------------------------
acad.lsp


;This file loads the RAM Drafting Menus.
;See acaddoc.lsp for the loading of the RAM Drafting LISP routines.


(if (not (menugroup"ram"))
(progn
(command "menuload" "ram.mns")
(menucmd "P10=+RAM.RAM")
)
)

(if (not (menugroup"buffalo"))
(progn
(command "menuload" "buffalo.mns")
(menucmd "P11=+holes.buffalo")
)
)

(if (not (menugroup"cadlibdu"))
(progn
(command "menuload" "cadlibdu.mns")
)

(princ)

-------------------------------------------------------------------------------------------------------

//
// AutoCAD menu file - S:\ram customization\buffalo.mnc
//

***MENUGROUP=Buffalo

***POP11
**Holes
[Buffalo Hole Inserts]
[--]
[9/16 Diameter
Hole]^C^C-layer;make;drill3;color;red;;;circle;\diameter;9/16;-layer;set;0;;-hatch;select;l;;p;s;;
[11/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;11/16;-layer;set;0;;-hatch;select;l;;p;s;;
[13/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;13/16;-layer;set;0;;-hatch;select;l;;p;s;;
[15/16 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;15/16;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[1-1/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.0625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-3/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.1875;-layer;set;0;;-hatch;select;l;;p;s;;
[1-5/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.3125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-7/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.4375;-layer;set;0;;-hatch;select;l;;p;s;;
[1-9/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.5625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-11/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.6875;-layer;set;0;;-hatch;select;l;;p;s;;
[1-13/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.8125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-15/16 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.9375;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[3/4 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;.75;-layer;set;0;;-hatch;select;l;;p;s;;
[7/8 Diameter
Hole]^C^C-layer;make;drill1;color;red;;;circle;\diameter;.875;-layer;set;0;;-hatch;select;l;;p;s;;
[--]
[1" Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.125;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/4 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.25;-layer;set;0;;-hatch;select;l;;p;s;;
[1-3/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.375;-layer;set;0;;-hatch;select;l;;p;s;;
[1-1/2 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.5;-layer;set;0;;-hatch;select;l;;p;s;;
[1-5/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.625;-layer;set;0;;-hatch;select;l;;p;s;;
[1-7/8 Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;1.875;-layer;set;0;;-hatch;select;l;;p;s;;
[2" Diameter
Hole]^C^C-layer;make;drill2;color;red;;;circle;\diameter;2;-layer;set;0;;-hatch;select;l;;p;s;;
[--]

//
// End of AutoCAD menu file - S:\ram customization\buffalo.mnc
//
-------------------------------------------------------------------------------------------------------------



Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB