• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Contributor
    alan1959
    Posts: 25
    Registered: ‎12-14-2011

    Closing AutoCad and Saving Drawing

    176 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.

    Please use plain text.
    Valued Mentor
    alanjt_
    Posts: 340
    Registered: ‎08-25-2008

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

     

    Please use plain text.