Change default SAVE settings to NO when closing from drawing tab.

Change default SAVE settings to NO when closing from drawing tab.

shoffmanHLUYT
Participant Participant
947 Views
3 Replies
Message 1 of 4

Change default SAVE settings to NO when closing from drawing tab.

shoffmanHLUYT
Participant
Participant

I open a lot of drawings in AutoCAD 2019 just to examine details or copy elements but rarely make changes that need to be saved. When I hit the X in the drawing tab at the top of the screen to close a drawing, AutoCAD opens a dialogue box asking if I want to save: Yes or No. The default setting is Yes but I almost never want to save. How can I change this default to No?

0 Likes
948 Views
3 Replies
Replies (3)
Message 2 of 4

ВeekeeCZ
Consultant
Consultant

No. You cannot change the default for that dialog.

I suggest you to create a new big button called NoSave Closing, put it as the very last item on Ribbon/Home.

 

The macro would be:

^c^c'((lambda () (command "_.Close") (if (> (getvar 'cmdactive) 0) (command "_Yes"))))
0 Likes
Message 3 of 4

Moshe-A
Mentor
Mentor

@shoffmanHLUYT 

 

copy & paste the following command (code lines) to your acad.lsp (or acaddoc.lsp) file.

the command is based on dbmod sysvar (kind of flag) which is set when a save is needed on closing files.  

 

this work only from the command line. to have this to work from the x icon it's a different 'story'.

 

enjoy

moshe

 

 

(defun c:q ()
 (if (= (getvar "dbmod") 0)
  (command "._close")
  (command ".close" "_Yes") 
 )
)

 

 

0 Likes
Message 4 of 4

dlanorh
Advisor
Advisor