save drawing problem

Discussion in 'AutoCAD' started by Remyga, Feb 24, 2004.

  1. Remyga

    Remyga Guest

    Hi all,
    I need to save curent drawing, but I found difference:
    1. when drawing was saved once I should use: (command "SAVE" filename)
    2. when drawing is just created (not saved yet) I should use: (command "SAVE" filename "Y")

    Question: How programaticaly to see this diference (in LISP)

    Thanks.
     
    Remyga, Feb 24, 2004
    #1
  2. Don't worry about telling the difference. Just loop the return value of the
    CMDACTIVE system variable:

    (command "_.save")
    (while (/= (getvar "cmdactive") 0) (command "_y"))
     
    Phil Kenewell, Feb 24, 2004
    #2
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.