Originally Posted by
TimSpangler
If you are looking for some objectdbx code, here is some great example from jbuzbee to open a close a document
Code:
*** Code in previous post ***
Tim, thanks for the feedback. I've not yet had the opportunity to test either Robert's or your code snippets.
Originally Posted by
TimSpangler
If you are looking to just do a quick save as then I suggest that you rename your old acaddoc.lsp. to acaddoc.lsp.old then save this:
Code:
(command "zoom" "e")
(command "qsave")
(command "close") ; Not available in SDI mode
; This closes the drawing, but how do you "Open" another...?
as acaddoc.lsp. Then open the drawings that you want to save. This will step through every drawing, zoom it, save it, and close it. Then it will move onto the next one.
Quick and painless. When you are done, just delete it and rename you old acaddoc.lsp.
I am confused on this part ... Even without ObjectDBX, why would I ever want to do this?
First, I already have a macro that does quick saves. However, both my macro, and your suggested method (replacing acaddoc.lsp) still requires manual selection of the "Next" drawing, lacking automation altogether.
Code:
Command Name: Next
Macro: ^C^C._qsave;._open
Keyboard Shortcut: N, or CTRL+N
(May require defun, and/or .PGP file modification)
Second, why not just make a script (.SCR)? This is what I do presently, when I want to conduct repetitive action(s) on numerous drawings.
Code:
_open -tab- [Filepath]\[Filename01] -tab- _save
_open -tab- [Filepath]\[Filename02] -tab- _save
_open -tab- [Filepath]\[Filename03] -tab- _save
...etc
Presto! In Ten to Fifteen minutes those 100+ drawings in my small project are done, and I can use AutoCAD again. My larger plan sets (550+ drawings) take even longer!
This may provide the automation, but is still very slow, as compared to the speed provided by ObjectDBX. This is why i made my initial request.
Cheers!