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

need a button to load a dropdown menu

13 REPLIES 13
Reply
Message 1 of 14
Anonymous
414 Views, 13 Replies

need a button to load a dropdown menu

I am needing to create a button that will load "mymenu.mnc" with one click.
"mymenu.mnc" is a drop down menu. I'd like it to load in the last slot.
Conversly, I'd like a button to unload this menu when I'm done. I have no
idea how to do this. Does anyone have any suggestions?

--
Mike
13 REPLIES 13
Message 2 of 14
Anonymous
in reply to: Anonymous

the menuload dialog is an MFC dialogs can be identified by a small question
mark (?) in the upper-right corner of the dialog box and MFC dialogs are not
affected by the CMDDIA system variable. so in other words you would have to
have some knowledge in VB, VBA or ARX possibly(??i dont know for sure about
ARX??) in order to access this to do what your wanting
"MKH" wrote in message
news:3BEC05F7D6724E53FA3B283B2E3A7913@in.WebX.maYIadrTaRb...
> I am needing to create a button that will load "mymenu.mnc" with one
click.
> "mymenu.mnc" is a drop down menu. I'd like it to load in the last slot.
> Conversly, I'd like a button to unload this menu when I'm done. I have no
> idea how to do this. Does anyone have any suggestions?
>
> --
> Mike
>
>
Message 3 of 14
Anonymous
in reply to: Anonymous

you got me on that one.....I don't get it!

Mike




Sam Herrin wrote in message
news:C12F11EBCCB1C112DC522C47434F3F1F@in.WebX.maYIadrTaRb...
> the menuload dialog is an MFC dialogs can be identified by a small
question
> mark (?) in the upper-right corner of the dialog box and MFC dialogs are
not
> affected by the CMDDIA system variable. so in other words you would have
to
> have some knowledge in VB, VBA or ARX possibly(??i dont know for sure
about
> ARX??) in order to access this to do what your wanting
> "MKH" wrote in message
> news:3BEC05F7D6724E53FA3B283B2E3A7913@in.WebX.maYIadrTaRb...
> > I am needing to create a button that will load "mymenu.mnc" with one
> click.
> > "mymenu.mnc" is a drop down menu. I'd like it to load in the last slot.
> > Conversly, I'd like a button to unload this menu when I'm done. I have
no
> > idea how to do this. Does anyone have any suggestions?
> >
> > --
> > Mike
> >
> >
>
>
Message 4 of 14
Anonymous
in reply to: Anonymous

Means you cannot turn the dialog off sothat you can quickly run your load
mymns macro cause the menuload dialog isnt effected by filedia system
variable so every time you use ur button the menuload dialog would appear
which if this isnt a problem then just use this macro
^C^Cmenulaod
and it would be the same as if you typed menuload
"MKH" wrote in message
news:980F908DCAC276ABBC385FFD689A8F8E@in.WebX.maYIadrTaRb...
> you got me on that one.....I don't get it!
>
> Mike
>
>
>
>
> Sam Herrin wrote in message
> news:C12F11EBCCB1C112DC522C47434F3F1F@in.WebX.maYIadrTaRb...
> > the menuload dialog is an MFC dialogs can be identified by a small
> question
> > mark (?) in the upper-right corner of the dialog box and MFC dialogs are
> not
> > affected by the CMDDIA system variable. so in other words you would have
> to
> > have some knowledge in VB, VBA or ARX possibly(??i dont know for sure
> about
> > ARX??) in order to access this to do what your wanting
> > "MKH" wrote in message
> > news:3BEC05F7D6724E53FA3B283B2E3A7913@in.WebX.maYIadrTaRb...
> > > I am needing to create a button that will load "mymenu.mnc" with one
> > click.
> > > "mymenu.mnc" is a drop down menu. I'd like it to load in the last
slot.
> > > Conversly, I'd like a button to unload this menu when I'm done. I have
> no
> > > idea how to do this. Does anyone have any suggestions?
> > >
> > > --
> > > Mike
> > >
> > >
> >
> >
>
>
Message 5 of 14
Anonymous
in reply to: Anonymous

The following menu macro loads a menu and places it (hopefully) in the last
position on the menu bar.

[Load Test]^C^C._Menuunload;Test;._Menuload;"c:/my
documents/acadx/stuff/test";$p24=+test.pop-1

The following menu macro unloads the menu.

[Remove Test]^C^C._Menuunload;Test

(Don't forget to use a MenuGroup name in your partial menu!)

--
http://www.acadx.com


"MKH" wrote in message
news:3BEC05F7D6724E53FA3B283B2E3A7913@in.WebX.maYIadrTaRb...
| I am needing to create a button that will load "mymenu.mnc" with one
click.
| "mymenu.mnc" is a drop down menu. I'd like it to load in the last slot.
| Conversly, I'd like a button to unload this menu when I'm done. I have no
| idea how to do this. Does anyone have any suggestions?
|
| --
| Mike
|
|
Message 6 of 14
Anonymous
in reply to: Anonymous

that loads the menu, but it isn't showing up in the menu bar at the top of
the screen.
Mike


R. Robert Bell wrote in message
news:A62087A067699EF623EA62D8F2FB22FE@in.WebX.maYIadrTaRb...
> The following menu macro loads a menu and places it (hopefully) in the
last
> position on the menu bar.
>
> [Load Test]^C^C._Menuunload;Test;._Menuload;"c:/my
> documents/acadx/stuff/test";$p24=+test.pop-1
>
> The following menu macro unloads the menu.
>
> [Remove Test]^C^C._Menuunload;Test
>
> (Don't forget to use a MenuGroup name in your partial menu!)
>
> --
> http://www.acadx.com
>
>
> "MKH" wrote in message
> news:3BEC05F7D6724E53FA3B283B2E3A7913@in.WebX.maYIadrTaRb...
> | I am needing to create a button that will load "mymenu.mnc" with one
> click.
> | "mymenu.mnc" is a drop down menu. I'd like it to load in the last slot.
> | Conversly, I'd like a button to unload this menu when I'm done. I have
no
> | idea how to do this. Does anyone have any suggestions?
> |
> | --
> | Mike
> |
> |
>
>
Message 7 of 14
Anonymous
in reply to: Anonymous

The crucial part for that is the "$p24=+test.pop-1" section.

"$p24=+" tells AutoCAD to insert the pop menu in slot #24.

"test" should be changed to match your MenuGroup name (which you should have
at the top of your custom menu).

"pop-1" should be changed to match the pop menu identifier for your desired
menu.

--
http://www.acadx.com


"MKH" wrote in message
news:45D4D4AA60EA202803DC2EF588F91810@in.WebX.maYIadrTaRb...
| that loads the menu, but it isn't showing up in the menu bar at the top of
| the screen.
| Mike
|
|
| R. Robert Bell wrote in message
| news:A62087A067699EF623EA62D8F2FB22FE@in.WebX.maYIadrTaRb...
| > The following menu macro loads a menu and places it (hopefully) in the
| last
| > position on the menu bar.
| >
| > [Load Test]^C^C._Menuunload;Test;._Menuload;"c:/my
| > documents/acadx/stuff/test";$p24=+test.pop-1
| >
| > The following menu macro unloads the menu.
| >
| > [Remove Test]^C^C._Menuunload;Test
| >
| > (Don't forget to use a MenuGroup name in your partial menu!)
Message 8 of 14
Anonymous
in reply to: Anonymous

Robert.....
I got the menu to load with no errors, but still not showing up in the pop
menu area.
menu name is - pipe2000
menugroup - pipe
pop name - pipinglibrary

[Load Pipe
Menu]^C^C._menuunload;pipe;._menuload;"c:/2dpipe/pipe2000";$p24=+pipe.piping
library

is there anything glaringly wrong?

Mike



R. Robert Bell wrote in message
news:5018F5FA920EFC18F06A6CE91A2B3267@in.WebX.maYIadrTaRb...
> The crucial part for that is the "$p24=+test.pop-1" section.
>
> "$p24=+" tells AutoCAD to insert the pop menu in slot #24.
>
> "test" should be changed to match your MenuGroup name (which you should
have
> at the top of your custom menu).
>
> "pop-1" should be changed to match the pop menu identifier for your
desired
> menu.
>
> --
> http://www.acadx.com
>
>
> "MKH" wrote in message
> news:45D4D4AA60EA202803DC2EF588F91810@in.WebX.maYIadrTaRb...
> | that loads the menu, but it isn't showing up in the menu bar at the top
of
> | the screen.
> | Mike
> |
> |
> | R. Robert Bell wrote in message
> | news:A62087A067699EF623EA62D8F2FB22FE@in.WebX.maYIadrTaRb...
> | > The following menu macro loads a menu and places it (hopefully) in the
> | last
> | > position on the menu bar.
> | >
> | > [Load Test]^C^C._Menuunload;Test;._Menuload;"c:/my
> | > documents/acadx/stuff/test";$p24=+test.pop-1
> | >
> | > The following menu macro unloads the menu.
> | >
> | > [Remove Test]^C^C._Menuunload;Test
> | >
> | > (Don't forget to use a MenuGroup name in your partial menu!)
>
>
>
Message 9 of 14
Anonymous
in reply to: Anonymous

Remove the space in "piping library" in the macro.

--
http://www.acadx.com


"MKH" wrote in message
news:12CD2EAE888875DD45DCF16F51C9BDF1@in.WebX.maYIadrTaRb...
| Robert.....
| I got the menu to load with no errors, but still not showing up in the pop
| menu area.
| menu name is - pipe2000
| menugroup - pipe
| pop name - pipinglibrary
|
| [Load Pipe
|
Menu]^C^C._menuunload;pipe;._menuload;"c:/2dpipe/pipe2000";$p24=+pipe.piping
| library
|
| is there anything glaringly wrong?
|
| Mike
|
|
Message 10 of 14
Anonymous
in reply to: Anonymous

Robert....I typed it in wrong here. I did remove the space earlier. Still no
go. Thanks for all your tries. Let me know if there is anything else to try.
btw...i'm on 2002.
Mike


R. Robert Bell wrote in message
news:97B013787A4126D2CAE7FFEED0C249BD@in.WebX.maYIadrTaRb...
> Remove the space in "piping library" in the macro.
>
> --
> http://www.acadx.com
>
>
> "MKH" wrote in message
> news:12CD2EAE888875DD45DCF16F51C9BDF1@in.WebX.maYIadrTaRb...
> | Robert.....
> | I got the menu to load with no errors, but still not showing up in the
pop
> | menu area.
> | menu name is - pipe2000
> | menugroup - pipe
> | pop name - pipinglibrary
> |
> | [Load Pipe
> |
>
Menu]^C^C._menuunload;pipe;._menuload;"c:/2dpipe/pipe2000";$p24=+pipe.piping
> | library
> |
> | is there anything glaringly wrong?
> |
> | Mike
> |
> |
>
>
>
Message 11 of 14
Anonymous
in reply to: Anonymous

Post your menu file, it might help me find the problem (or isolate it,
anyway).

--
http://www.acadx.com


"MKH" wrote in message
news:3BDA68B157A13C38C8C42889F2B5C815@in.WebX.maYIadrTaRb...
| Robert....I typed it in wrong here. I did remove the space earlier. Still
no
| go. Thanks for all your tries. Let me know if there is anything else to
try.
| btw...i'm on 2002.
| Mike
Message 12 of 14
mghbryan
in reply to: Anonymous

I just defined a lisp command to load the menu using menuload the I use the menucmd to place the pop1 of your menu into the pop10 location in the drop down bar. You can adjust the pop number to place it where you want but if another drop down is in the pop10 (for example) it will overwrite it. This should get you where you need.

(defun c:COMMANDNAME()
(command "menuload" "YOURMENU")
(menucmd "p1=+YOURMENU.pop10")
Message 13 of 14
Anonymous
in reply to: Anonymous

Found it. You needed to use the menu identifier, not the menu label.

[Load Pipe
Menu]^C^C._MenuUnload;Pipe;._MenuLoad;"C:/Temp/Pipe2000";$p24=+pipe.pop11

--
http://www.acadx.com


"R. Robert Bell" wrote in message
news:5594C1C5445B17597AB02F3178F26FBB@in.WebX.maYIadrTaRb...
| Post your menu file, it might help me find the problem (or isolate it,
| anyway).
|
| --
| http://www.acadx.com
|
|
Message 14 of 14
Anonymous
in reply to: Anonymous

Robert...that did it. Thanks very much. You are very much appreciated here.
Mike




R. Robert Bell wrote in message
news:5FF696BB771284CD7FBAA4A8719805FA@in.WebX.maYIadrTaRb...
> Found it. You needed to use the menu identifier, not the menu label.
>
> [Load Pipe
> Menu]^C^C._MenuUnload;Pipe;._MenuLoad;"C:/Temp/Pipe2000";$p24=+pipe.pop11
>
> --
> http://www.acadx.com
>
>
> "R. Robert Bell" wrote in message
> news:5594C1C5445B17597AB02F3178F26FBB@in.WebX.maYIadrTaRb...
> | Post your menu file, it might help me find the problem (or isolate it,
> | anyway).
> |
> | --
> | http://www.acadx.com
> |
> |
>
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost