Custom Button

Discussion in 'AutoCAD' started by VMAI, Apr 28, 2004.

  1. VMAI

    VMAI Guest

    I was wondering if anyone knew of a way I could use a macro that would load up a MNS file in menuload. Your help is greatly appreciated. Thanks in advance.


    AutoCad 2000 LT
     
    VMAI, Apr 28, 2004
    #1
  2. VMAI

    Jim Claypool Guest

    (defun reloadmenu (menu)
    (command
    ".menuunload" menu
    ".menuload" menu
    )
    )

    load up a MNS file in menuload. Your help is greatly appreciated. Thanks in
    advance.
     
    Jim Claypool, Apr 28, 2004
    #2
  3. VMAI

    ECCAD Guest

    VMAN, try someting like:

    [Electrical]^c^c(setq CKFile (strcat ec_drv "/ec/menus/elec15.mns"))+
    (if (findfile CKFile)(progn+
    (setq DWG_SIZE 0)(command "_MENU" ".")+
    (command "_MENU" (strcat ec_drv "/ec/menus/elec15"))+
    (command "_undo" "_c" "_none")(command "_undo" "_a")));

    Bob
     
    ECCAD, Apr 28, 2004
    #3
  4. VMAI

    ECCAD Guest

    Whoops,
    Missed the "LT" in post. Sorry bout that.

    Bob
     
    ECCAD, Apr 28, 2004
    #4
  5. VMAI

    VMAI Guest

    Well thanks for the help.
     
    VMAI, Apr 29, 2004
    #5
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.