Visual LISP, AutoLISP and General Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
*Bartleet, Sean
Insert menu item on pulldown menu
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
97 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
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
Re: Insert menu item on pulldown menu
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.maYI adrTaRb...
> 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")
>
(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"
news:B161170A5944E6B967A1F75DE1774192@in.WebX.maYI
> 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
Re:
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.maYI adrTaRb...
> 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
Thanks, it worked great. I now see as you say, no alias was defined for the
menu.
Thanks for the help.
Sean
"Kevin Nehls"
news:E58F4BB471D6989D90A54C15E6C7AE2C@in.WebX.maYI
> 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
