I have just noticed something in regards to Ronjon's code:
< .. >
See if this gives you any ideas:
(setq docs (vla-get-documents (vlax-get-acad-object)))
(setq i (vla-item docs "Drawing1.dwg"));;<-Name is case sensitive
;;Should work for drawings in the background but not if drawing is current
(vla-close i)
Did you know this code will save the document as is when it closes?
I hadn't noticed this before, but as I was running some final tests before putting this out to my users, I noticed my drawings are not what they were when first opened.
So, how can I tell it to close without saving?
There's gotta be some kind of
(vla-close ::(save=false) i)
right?