Sure,
(defun OpenDwgs (/ Rtn)
(vlax-for x (vla-get-Documents
(vlax-get-acad-object)
)
(setq Rtn (cons (strcase(vla-get-name x)) Rtn))
)
(reverse
Rtn
)
)
--
Dann M Brower
CompuDie Inc.
Wire EDM Service
"Marcel Janmaat" wrote in message
news:5106262@discussion.autodesk.com...
Hi,
I found some other posts aswell. I'm using this now;
(defun OpenDwgs (/ Rtn) (vlax-for x (vla-get-Documents
(vlax-get-acad-object)) (setq Rtn (cons (vla-get-name x) Rtn))) (reverse
Rtn))
Only I don't know how to turn the drawingnames to uppercase.
Do you?
M
"Dann Brower" schreef in bericht
news:5106032@discussion.autodesk.com...
maybe like:
;;Usage (setq docslist(DBGetDocsList))
(defun DBGetDocsList (/ docs inc docslist)
(setq docs (vla-get-Documents (vlax-get-object "AutoCad.Application"))
inc 0
docslist (list)
)
(repeat (vla-get-count docs)
(setq docslist (append docslist (list (vla-item docs inc)))
inc (+ inc 1)
)
)
docslist
)
--
Dann M Brower
CompuDie Inc.
Wire EDM Service
"Marcel Janmaat" wrote in message
news:5106019@discussion.autodesk.com...
Hi,
Could someone remind me on how to make a list of the drawings wich are
opened in an AutoCAD session.
M