The following link contains code which will return a list containing
the names of every open document:
http://www.acadx.com/visuallisp/023.htm
If all you want is a count, use something like this:
(vl-load-com)
(vla-get-count (vla-get-documents (vlax-get-acad-object)))
--
"That's no ordinary rabbit."
http://www.acadx.com
"jcurley" wrote in message
news:f0873f5.-1@WebX.maYIadrTaRb...
Hello,
I have a question that I've been trying to figure out. I'm working a
AutoCad Map 2000i. The "SDI" variable for 'single- or multtple-
document interface' is set to "0", so I can open up multiple-drawings
in my current sessions. Is there a way to find out, thru code, if I
have more than one drawing open? I know the "Window" pulldown will
list them but is there a way I can get a list of them drawings thru
autolisp or other methods of programming? Any suggestions would be
greatly appreciated. Thanks in advance,
Jcurley@rbf.com