- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I got a bit tired of dealing with the close/save dance using more than one drawing, so I wrote a tiny lisp routine to do a saveall (yes, I have Expresstools- I'm using Civil3D 2017 usually) and closeall, as well as a single-drawing version:
(defun c:finishall () (command "-saveall") pause (command "closeall") );defun (defun c:finish () (command "qsave") (command "close") );defun
I'm not sure if I've got my syntax jacked or what, but the FINISH works fine, but FINISHALL yields this in the command window:
Command: FINISHALL -saveall Unknown command "-SAVEALL". Press F1 for help. Command: closeall Really want to discard all changes to drawing? <N> nil
If I say 'yes,' I lose my changes (obviously, as the SAVEALL didn't take) and if I say 'no,' the changes are saved in the current drawing only, and the other drawings prompt for 'save: y/n'
this happens with or without the '-' switch.
I'd like to think that CAD's essentially rushing, and forcing a CLOSEALL and interrupting the SAVEALL... But I'm not sure how to make SaveAll work, and I'm not sure if I need to put in some form of 'wait' to pause until SaveAll is finished before executing CloseAll.
(... can you tell I don't do this much?)
Any thoughts on how I can make this work?
Thanks!
~C
Solved! Go to Solution.