Jump to content

Mission: Get the list of all DBX opened drawings

Recommended Posts


Hi all,


as you know there is a way to get a list of all opened drawings.


(defun Get:OpenDrawings ( / *dwg* *acdocs*)
(vlax-for <doc> (MT:vla-get-Documents)
 (if (eq "" (setq *dwg* (vla-get-fullname <doc>))) (setq *dwg* (vla-get-name <doc>))) 
 (setq *acdocs* (cons (cons (strcase *dwg*) <doc>) *acdocs*))
(reverse *acdocs*)

returns an assoc list of all opened drawings' ((name1 . vla-object1) (name2 . vla-object2) ... (nameN . vla-objectN))


Is there a way to get all opened drawings in current session as ObjectDBX?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...