Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insert menu item on pulldown menu

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
216 Views, 2 Replies

Insert menu item on pulldown menu

Hi,

I have loaded a menu group and wish to add a menu to the menu bar using
lisp. The menu group is called
GISMaster and the menu is called GISMaster.

I previously used

(menucmd "P14=+GISMaster.GISMaster")

and this worked OK. When I upgraded to Windows XP (Still using ACAD2000i)
the command returns a "nil" and does not load the menu.

Herewith the first few lines of the MNU file:

***MENUGROUP=GISMaster

***POP1
[/GGISMaster]
//[--]
[->/aLayer Tools]
[->/CCreate GISMaster Layers]
[/SCollection System (SY)]^C^C(command "_.layer" "n" "sy_" "s" "sy_"
"")

I loaded the menu with:
(defun c:GISM ()
(ARXLOAD "C:\\Program Files\\GISMaster\\gism30_2000.arx")
(command "._MENULOAD" "C:\\Program Files\\GISMaster\\gism30_2000.mns")
(menucmd "P14=+GISMaster.GISMaster")
)

Any assistance will be appreciated.

Regards

Sean Bartleet
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Try this:
(menucmd "P14=+GISMaster.POP1")

Your menu you want to add is not named or labeled GISMaster. If that
doesn't work I'll give it a look at on XP at home tonight.

--
Kevin Nehls


"Sean Bartleet" wrote in message
news:B161170A5944E6B967A1F75DE1774192@in.WebX.maYIadrTaRb...
> Hi,
>
> I have loaded a menu group and wish to add a menu to the menu bar using
> lisp. The menu group is called
> GISMaster and the menu is called GISMaster.
>
> I previously used
>
> (menucmd "P14=+GISMaster.GISMaster")
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Hi,

Thanks, it worked great. I now see as you say, no alias was defined for the
menu.

Thanks for the help.

Sean

"Kevin Nehls" wrote in message
news:E58F4BB471D6989D90A54C15E6C7AE2C@in.WebX.maYIadrTaRb...
> Try this:
> (menucmd "P14=+GISMaster.POP1")
>
> Your menu you want to add is not named or labeled GISMaster. If that
> doesn't work I'll give it a look at on XP at home tonight.
>
> --
> Kevin Nehls

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost