Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple Drawings Open..

1 REPLY 1
Reply
Message 1 of 2
jcurley
122 Views, 1 Reply

Multiple Drawings Open..

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
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: jcurley

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost