Open Drawing Using Lisp Routine

Discussion in 'AutoCAD' started by erincatton, Jan 31, 2005.

  1. erincatton

    erincatton Guest

    Can someone please tell me why this lisp will not work? It works if I type it in manually at the command prompt. I have looked through all other postings and have not found any help! Thanks.

    This is what my routine looks like:

    (defun c:app ()
    (command "filedia" "0")
    (command "new" "N:\ACadStandards\C&W CADD STANDARDS\Drawing Templates\APP.dwt")
    (command "filedia" "1")
    )


    This is the error I get:


    Command: app
    filedia
    Enter new value for FILEDIA <0>: 0
    Command: new
    Command: N:ACadStandardsC&W CADD STANDARDSDrawing TemplatesAPP.dwt Unknown
    command "N:ACADSTANDARDSC&W CADD STANDARDSDRAWING TEMPLATESAPP.DWT". Press F1
    for help.
    Command: filedia
    Enter new value for FILEDIA <0>: 1
    Command: nil
     
    erincatton, Jan 31, 2005
    #1
  2. erincatton

    Dann Guest

    (command "new" "N:\\ACadStandards\\C&W CADD STANDARDS\\Drawing
    Templates\\APP.dwt")
     
    Dann, Jan 31, 2005
    #2
  3. erincatton

    oaleman64 Guest

    also you can use this syntax so that the routine works to you

    (command "new" "N:/ACadStandards/C&W CADD STANDARDS/Drawing
    Templates/APP.dwt")
     
    oaleman64, Feb 20, 2005
    #3
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.