Menu syntax

Discussion in 'AutoCAD' started by Steve_Rudd, Oct 8, 2004.

  1. Steve_Rudd

    Steve_Rudd Guest

    When in SDI mode with filedia set to 1, the following menu syntax works fine:
    ^C^C^P_.new BoxGutterType1 ^P.
    However, when in MDI mode, the menu call to "new" opens the dialog box, prompting for user response.
    What should the menu syntax be to prevent the dialog box from being opened
    Acad 2002 XP Pro.

    Rgds, Steve
     
    Steve_Rudd, Oct 8, 2004
    #1
  2. Change filedia to '0' and it suppresses the dialog box, but for some reason,
    it's not passing the template filename to the new command. Perhaps someone
    else could shed some light?

    ^C^C_filedia;0;_.new;"templatename.dwt";filedia;1;

    (suppresses dialog but still doesn't work)
     
    Casey Roberts, Oct 8, 2004
    #2
  3. Steve_Rudd

    dblaha Guest

    Set the FILEDIA system variable to 0

    (setvar "filedia" 0)

    Be sure to set it back to 1 when you are done.


    Dave
     
    dblaha, Oct 8, 2004
    #3
  4. Steve_Rudd

    dblaha Guest

    This will work, but only if SDI is set to 1 (single drawing interface mode).

    Dave
     
    dblaha, Oct 11, 2004
    #4
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.