what to do?
Create a list of filenames.
Create a table.
Populate the table using the list of filenames.
As this requires ActiveX methods (afaik), I can only help you a bit.
I can get the above done, but don't ask about 'customizing', as I know to little about ActiveX methods within acad to do so properly.
This is howfar i can get, using the Knowledge Network and some code i found from @_Tharwat (albeit on another forum).
(setq file_list (vl-directory-files "E:/lisp/testDWG" "*.dwg" 1)
rows (length file_list)
cw 1
acadObj (vlax-get-acad-object)
doc (vla-get-ActiveDocument acadObj)
pt (vlax-3d-point 0 0 0)
modelSpace (vla-get-ModelSpace doc)
)
(foreach file file_list
(setq ln (strlen file))
(if (> ln cw)(setq cw ln))
)
(setq myTable (vla-addtable modelSpace pt rows 1 1 50)
i 0
hgt (if (zerop (cdr (assoc 40 (setq e (entget (tblobjname "STYLE" (getvar 'textstyle)))))))
(cdr (assoc 42 e))
(cdr (assoc 40 e))
)
)
(vla-setcolumnwidth myTable 0 (* hgt cw))
(while (< i (length file_list))
(vla-settext myTable i 0 (nth i file_list))
(setq i (1+ i))
)
However, the text size isn't coming from the textstyle, but some kind of table layout.
as the first line is 6 and the rest is 4.5, but the textstyle sayz: 2.5
So i don't have a clue yet how to set those correctly. (if possible)