Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
25 Posts
1 Kudo
Registered: ‎12-14-2011
Post 1 of 2

Closing AutoCad and Saving Drawing

314 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
489 Posts
51 Kudos
Registered: ‎08-25-2008
Post 2 of 2

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))

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post