• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    *Bartleet, Sean

    Insert menu item on pulldown menu

    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
    Please use plain text.
    *Nehls, Kevin

    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")
    >
    Please use plain text.
    *Bartleet, Sean

    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
    Please use plain text.