AtuoCAD 06 CUI menu

Discussion in 'AutoCAD' started by cwd44, Apr 5, 2005.

  1. cwd44

    cwd44 Guest

    Will this file insertion command still work in AutoCAD 2006 with CUI menus

    (COMMAND "_.menuunload" "test.mnu" )
    (COMMAND "_.menuload" "test.mnu" )
    (MENUCMD (STRCAT "p" (ITOA 4) "=+" "test.mnu" ".pop1")).
     
    cwd44, Apr 5, 2005
    #1
  2. Your likely to have problems with this. I had to go to using the menu
    api (introduced in 2000).

    Terry
     
    Terry W. Dotson, Apr 5, 2005
    #2
  3. cwd44

    cwd44 Guest

    Do you have a sample of this menu api code.

    Thank you Terry for your help.
     
    cwd44, Apr 5, 2005
    #3
  4. See the AutoCAD help and search these groups for vla-get-Menus. My
    stuff is VBA.

    Terry
     
    Terry W. Dotson, Apr 5, 2005
    #4
  5. To maintain compatibility with previous releases, I use something like this:

    (setq FILEDIA (getvar "filedia"))
    (setvar "filedia" 0)
    (command "_menuunload" "Test")
    (if (and (>= (atof (substr (getvar "acadver") 1 4)) 16.2) (findfile
    "Test.cui"))
    (command "_menuload" "Test.cui") ; 2006 and above
    (command "_menuload" "Test.mnu") ; 2005 and below
    )
    (menucmd "P4=+Test.pop1")
    (setvar "filedia" FILEDIA)


    Dan
     
    Daniel J. Altamura, R.A., Apr 6, 2005
    #5
  6. cwd44

    Gary Fowler Guest

    Good question. I have 2006 now, but not installed.
    If 2006 uses a cui menu, how do you load old mnl and dll files (that worked
    with the mnu)?
     
    Gary Fowler, Apr 6, 2005
    #6
  7. It works the same as before. If you have a menu called Test.mnu, Test.mns,
    or Test.cui, then Test.mnl will automatically be loaded. Of course the old
    legacy menu files (.mnu/.mns) will be recompiled first into a new .cui file
    of the same name, plus a .mnr file. I don't know about .dll's containing
    bitmaps. I haven't tried.

    Dan
     
    Daniel J. Altamura, R.A., Apr 6, 2005
    #7
  8. cwd44

    Gary Fowler Guest

    Thanks
    If someone has tried the dll file, please reply.
     
    Gary Fowler, Apr 6, 2005
    #8
  9. Yes, it continues to use bitmaps rolled into DLLs.

    Terry
     
    Terry W. Dotson, Apr 6, 2005
    #9
  10. cwd44

    Gary Fowler Guest

    Thanks
     
    Gary Fowler, Apr 6, 2005
    #10
  11. cwd44

    cwd44 Guest

    Thank you Dan
    That will work
     
    cwd44, Apr 6, 2005
    #11
  12. You are quite welcome. I'm glad to have helped.
     
    Daniel J. Altamura, R.A., Apr 6, 2005
    #12
  13. cwd44

    liminhe88 Guest

    Do you guys have problem using Autocad 2006 command "CUI", can you
    change the order of menu?

    I have a user defined menu loaded, but I want my own menu look like
    File Edit ....MyMenu ...Window Help

    But I found it's hard to change the menu order, the menu looks good in
    the CUI interface, but does not work like it looks even I click "Apply"
    button.

    Thanks all.
     
    liminhe88, Apr 11, 2005
    #13
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.