Visual LISP, AutoLISP and General Customization

Posts: 25
Registered: ‎12-14-2011
Message 1 of 2 (275 Views)

Closing AutoCad and Saving Drawing

275 Views, 1 Replies
12-14-2011 02:45 PM

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.

Valued Mentor
Posts: 466
Registered: ‎08-25-2008
Message 2 of 2 (257 Views)

Re: Closing AutoCad and Saving Drawing

12-17-2011 07:16 AM in reply to: alan1959

Redefine the Close command.


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


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community