Visual LISP, AutoLISP and General Customization

Reply
*Bartleet, Sean
Message 1 of 3 (108 Views)

Insert menu item on pulldown menu

108 Views, 2 Replies
05-23-2003 08:51 AM
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
*Nehls, Kevin
Message 2 of 3 (108 Views)

Re: Insert menu item on pulldown menu

05-23-2003 08:53 AM in reply to: *Bartleet, Sean
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")
>
*Bartleet, Sean
Message 3 of 3 (108 Views)

Re:

05-23-2003 09:11 AM in reply to: *Bartleet, Sean
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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community