Help on starting a dvb with a lisp

Discussion in 'AutoCAD' started by Ron Mills, Apr 27, 2004.

  1. Ron Mills

    Ron Mills Guest

    I have a lisp to fire off a dvb... it's as follows

    (defun c:fgp()
    (vl-cmdf"-vbarun" "DrawPoly.dvb!Draw.Begin")
    (vl-cmdf "vbaunload" "DrawPoly.dvb")
    (princ)
    )

    now..
    (vl-cmdf"-vbarun" "DrawPoly.dvb!Draw.Begin") alone works
    (vl-cmdf "vbaunload" "DrawPoly.dvb") alone works

    but the full lsp doesnt work.

    It gives me the error: "Unknown command "DRAWPOLY.DVB". Press F1 for
    help."

    any help here?
     
    Ron Mills, Apr 27, 2004
    #1
  2. Ron Mills

    vinceglorto Guest

    did you try "_vbaunload" ?
     
    vinceglorto, Apr 28, 2004
    #2
  3. My version worked only after I added the full path to both lines. The
    double slashes are required for filenames in LISP. I don't know if this
    helps you.


    (defun c:fgp()
    (vl-cmdf"-vbarun" "p:\\mydocuments\\test.dvb!Begin")
    (vl-cmdf "vbaunload" "p:\\mydocuments\\test.dvb")
    (princ)
    )

    James
     
    James Belshan, Apr 29, 2004
    #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.