Close Dialog Suppresion

Discussion in 'AutoCAD' started by gdean, Sep 10, 2004.

  1. gdean

    gdean Guest

    I am having trouble getting the kinks out of a lisp routine I am tweaking. I am using the "IF" function to either CLOSE the drawing if nil and SAVE CLOSE if anything else. The specifics don't really matter.

    The problem I am getting is in some drawings I get a prompt in the command line that says "Really want to discard...". I am sure you know the rest of that prompt. This only happens in some drawings. Here is what I was using:

    (if (= x nil) (command "close") (command "qsave" "close"))

    If I put a "Y" after the first close it says "Y is not a command". Does any one know of a better way to accomplish this?
     
    gdean, Sep 10, 2004
    #1
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.