Automatically saving a drawing when exiting it when SDI=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I have an issue that I am working on with Autodesk in which I cannot run in the SDI=1 mode. Because I cannot run in that mode I end up with many open and unsaved drawings. My fear, which has been realized form time to time, is that my computer or ACADE will crash and I will lose all the work done on all the open drawings.
I found a Lisp routine that saves and closes all but the current drawing. CLSAVE.LSP is the routine. I do not have an author for this routine but thank you to whomever wrote this.
I put that Lisp routine (c:cas) into my ACADDOC.LSP (which runs whenever a drawing is opened) and now whenever I open a new drawing it runs this routine so I end up with only 1 drawing open at a time.
There are plenty of threads about using the ACADDOC.LSP but if needed I can share how that works.
Attached is the CLSAVE.LSP Lisp routine.
Hope this may help someone!!!
Thanks
Dennis