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

open DWG´s at the same acad session

1 REPLY 1
SOLVED
Reply
Message 1 of 2
devitg
424 Views, 1 Reply

open DWG´s at the same acad session

There is a way to get a LIST of all the DWGs open at the actual ACAD session???
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: devitg

In it's simplest form you could use

 

(defun c:foo ( / docs )
  (vlax-for doc (vla-get-documents (vlax-get-acad-object))
    (setq docs (cons (vla-get-fullname doc) docs))
    )
  )

 Which will result in a full name (with path) for any open (but obviously saved) drawing file. However an unsaved document will return an empty string "".

Depends on what you want to use it for. The other document property(s) that may be of use might be "name" and "path".

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

Post to forums  

Autodesk Design & Make Report

”Boost