Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Closing AutoCad and Saving Drawing

1 REPLY 1
Reply
Message 1 of 2
Anonymous
472 Views, 1 Reply

Closing AutoCad and Saving Drawing

I am trying to figure out how to alter the close program and close drawing commands (the X method in the upper left corners). What I want to do is purge the drawing before closing without having to do a single purge command first then closing. I want to CLOSE X to purge then close the drawings.

 

Anyone have suggestions? I have modified the CLOSE commands withing the CUI files but this does not effect the X command.

1 REPLY 1
Message 2 of 2
alanjt_
in reply to: Anonymous

Redefine the Close command.

 

(command "_.undefine" "_.close")
(defun c:Close (/) (command "_.-purge" "_REGAPPS" "*" "_NO" "_.close") (princ))

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost