This kind of thing is fairy easy with scripts. Its ok to run a lisp from a script, I do it all the time.
Then you can just issue a qsave, then a close statement.
Lisps and VBA's run into lots of hangups when trying to close a drawing with SDI set to 0.
They think of themselves as being run under a drawing so they quit when the drawing closes.
You should jump to using scripts when you want to close and open another drawing.
"Odie Silva"
|>Hi all,
|>
|>I have almost 300 drawings that I need to open, do few things there, closing
|>with saving.
|>
|>I run a single document variable mode.
|>
|>I tried (vla-close myDoc :vlax-true) but it says my drawing is busy...
|>
|>if someone could save me same time on this it will be greatly appreciated.
|>
|>Odie
|>
James Maeding
Civil Engineer/Programmer