Now I'll be first to admit that I don't know much about VLisp so please be gentle!!
I'm in the process of creating a proggy that will open files, grab some info, close, then move on to the next file.
I found this...
(vla-activate (vla-open (vla-get-documents (vlax-get-acad-object)) "C:\My Path\My File.dwg" :VLAX-TRUE))
I'm running in MDI mode, and when the previous line is called, it opens the file - great, halfway there. However, the following lines (the ones that grab info) aren't called in the read-only drawing. When I switch back to the previous drawing (the one that was open when this whole thing started), then the "info-grabbing" code begins running. Soooo..... What the flip??!?