Opening template from lisp

Discussion in 'AutoCAD' started by Steve_Rudd, Aug 19, 2004.

  1. Steve_Rudd

    Steve_Rudd Guest

    Hi Guys, need a little help with this one please.
    Im trying to open an existing template file from within a lisp routine and then have the routine carry out its draw functions in the template it has just opened. However, once the template file has been opened, the lisp function stops. How do I get around this.
    Rgds, Steve
     
    Steve_Rudd, Aug 19, 2004
    #1
  2. Steve_Rudd

    Tom Smith Guest

    I don't think it's possible for a plain vanilla lisp to begin in one
    document and continue running in another. You can do this with a script
    which starts a new drawing and then loads and runs a lisp within it. There
    is probably a vlisp way of creating a a new document and doing things in it.
     
    Tom Smith, Aug 19, 2004
    #2
  3. Steve_Rudd

    ECCAD Guest

    Use a script to .qsave, the .open the file.
    And, break up your Lisp into (2) chunks. First one gets
    loaded and run in the 1st drawing - that at the end, calls the
    script. In the script do a : (load "part2.lsp"), which is the 2nd
    part of the lisp, the one that does work in the 'opened' drawing.

    Bob
     
    ECCAD, Aug 20, 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.