+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
  1. #1
    Super Member gcp310's Avatar
    Using
    not applicable
    Join Date
    Dec 2002
    Location
    physicaly - Australia, mentaly - Another Planet
    Posts
    696

    Default loading menus by toolbutton

    Registered forum members do not see this ad.

    Does anyone know if its possible to load a custom menu by using a tool buttom?
    i am interested in the code behind it if you can do such a thing.

    Fuccaro, your the guru in the way of code, maybe you know of a way?

    Thanks in advanced

    G

  2. #2
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    Ok, G! Here I am. But I know just a few lisp and fewer about menus, so I am not sure I can help you. But let’s try! Please return with more details about what do you wish to do.
    Do you all ready have a menu file MY_MENU.MNS? Or maybe it is a compiled file *.MNC?
    Is it a toolbar menu?
    Do you wish to load your menu by pressing a button placed on a toolbar?
    Please send me as more details as it is possible, maybe the job will be to hard for me and you will get nothing from me. TheWorld is big, sure somebody else will read your post and will guide you in the right direction.
    Miklos
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  3. #3
    Super Member gcp310's Avatar
    Using
    not applicable
    Join Date
    Dec 2002
    Location
    physicaly - Australia, mentaly - Another Planet
    Posts
    696

    Default

    ok, here we go...

    say i wanted to creqate a cd with a whole file structure of blocks. and that i will also have a pulldown menu located on this cd. the idea is that for everyday use i have a toolbutton in autocad that i hit and the menu located on the cd would load, thus enabling me to drop blocks into cad.
    then say, i get sent to another branch i can take the cd with me, or even take the cd home and work from home without too much problems, all referencing blocks from the cd.

    Tell me if im nuts,or if the idea sounds possible.

    Thanks

    G

  4. #4
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    Hay G!
    Do you wish to use a menu just for insert blocks in your drawing? The Insert block command will work even if the block is placed on a CD.
    When the laser was discovered somebody wrote that “it is a solution seeking for a problem”. Today it is a solution to almost all problems.
    It is possible to have a menu for inserting blocks, but what will be the advantage? –other than people remarks that you work with your own menus. Please help me to see the problem.
    However I can write you how to create a pull-down menu containing commands to meet your needs. As I wrote in my previous message I am not an expert is this things; probable I will drive you on an other way but the simplest one –letting other readers to smile on my ignorance.
    If you still want to start on this way, please write me the structure you desire to the new pull-down menu. I suggest you we work in more little steps and receive your feed back after every major step, rather than I send you a long text from first. Just in case, please have the AutoCAD install kit prepared.
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  5. #5
    Super Member gcp310's Avatar
    Using
    not applicable
    Join Date
    Dec 2002
    Location
    physicaly - Australia, mentaly - Another Planet
    Posts
    696

    Default

    I could probably set up the blocks on the cd to use the Design Window in autocad. and yes, i could just insert blocks using the insert command.

    The bigger picture here is that i also have custom menus that seem to disappear everytime i close autocad and i have to menuload>setup the menus each time i open autocad. i have tried every trick in the book from file search paths to profiles.

    Thanks for your interest in the matter. But you are Right. no need to make things totally complecated, just to do a simple task.

    G

  6. #6
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    Quote Originally Posted by gcp310
    i also have custom menus that seem to disappear everytime i close autocad and i have to menuload>setup the menus each time i open autocad. i have tried every trick in the book from file search paths to profiles.
    Just for my curiosity: did you try to save your user profile?
    Or let me recommend you an other solution: a small lisp routine set up to run at the start of the AutoCAD will load your custom menu file. But this only in extremis, if other solutions will fail.
    Take care, G!
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  7. #7
    Super Member gcp310's Avatar
    Using
    not applicable
    Join Date
    Dec 2002
    Location
    physicaly - Australia, mentaly - Another Planet
    Posts
    696

    Default

    Yes, i have tried saving my user profile. But no luck.

    Have no where else to turn as far as loading menus.
    What did you have in mind?

    Thanks

    G

  8. #8
    Super Member Mr T's Avatar
    Using
    AutoCAD 2007
    Join Date
    Nov 2002
    Location
    Loch Oich SCOTLAND...
    Posts
    1,641

    Default

    Quote Originally Posted by gcp310
    Yes, i have tried saving my user profile. But no luck.

    Have no where else to turn as far as loading menus.
    What did you have in mind?

    Thanks

    G
    In my classroom I have 12 pcs which all load the same menus, every time a kid logs on.

    Steps to do this

    1) Setup whatever menus you like

    2) Save that current profile - make a backup as well

    3) Hunt in your Acad folder on the current machine for these files

    It's the *.mnu and *.mnr files that acad loads up. Also in OPTIONS there are settings to tweak which will load certain files into menus.

    Nick
    http://www.flickr.com/photos/80049703@N00/ http://mtbnick.fotopic.net/
    http://s240.photobucket.com/albums/ff241/dyNick_Scots/
    http://designgraphicsshowcase.blogspot.com/

    High School Classroom - 21 AutoCAD 2007, Inventor 11, COREL Draw & Paint 11. Very Unreliable Network.

    Home - AMD 2.1GHZ - 512Ram, 64 Video,
    Laptop Inventor 7, Autocad 2004, Corel 11

  9. #9
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    G
    I agree with Mr T. Let's try every solution to make the job in the "normal" way. What is the extension of your truble making menu file? Is it compiled *.mnc ?
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  10. #10
    Super Member gcp310's Avatar
    Using
    not applicable
    Join Date
    Dec 2002
    Location
    physicaly - Australia, mentaly - Another Planet
    Posts
    696

    Default

    Registered forum members do not see this ad.

    Ok, i have three menus, all have their own folder in the autocad directory.
    the menu folders file path have been added to the search file path under tool>options>files. I then load these menus using menuload. i load the .mnu files.

    Then i go tools>profiles and save the profile, even export it out.

    Then when i open autocad, Wala, no menus.
    Before i load the menus i have tried deleting the .mnc & .mnr files so that new files are compiled and there is no chance of referencing the previous compiled menus.

    Its frustrating, to say the least. i could copy all three menus into a copy of the autocad.mnu, but i shouldnt have to. the system by right, should load and keep loaded my three menus.

    Thanks guys for your help. I shall however give it one more go tommorow.acutally, next week as im still at a 3 day viz course (talk about that another time)

    G

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts