How does someone get the variable for each open instance of documents in a cad program?
;; Gets the application
(setq objApp (vlax-get-acad-object))
;; Object collection of open documents
(setq objDocs (vla-get-documents objApp))
;; Each open document
(setq iCount (vla-get-count objDocs))
(setq iItr1 0)
(repeat iCount ; Also tried foreach
;; This is where I'm stuck
;; ssname works with selection sets, not objects.
(setq objOpenDoc (ssName objDocs iItr1));---; <-Error
(princ "\nDoc : ")(princ objOpenDoc)(terpri); Printing Results
(setq iItr1 (1+ iItr1));--------------------; Next Document
);repeat