The following will return a list of the last 50 drawings opened, sorted with the most recently opened drawing first:
(defun LM:recentfiles ( )
(
(lambda ( reg )
(mapcar 'car
(vl-sort
(mapcar
'(lambda ( x )
(cons
(vl-registry-read reg x)
(atoi (vl-registry-read reg (strcat "filetime" (substr x 5))))
)
)
(vl-remove-if-not
'(lambda ( x ) (wcmatch (strcase x t) "file#*"))
(vl-registry-descendents reg "")
)
)
'(lambda ( a b ) (> (cdr a) (cdr b)))
)
)
)
(strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Recent File List")
)
)
Exactly why you should use a SHP instead of a text style,
Array path could be much quicker/as quick in many instances and often less trouble. Depends on the situation, nothing cut and dry in AutoCAD. I do all types of CAD, including modifying old drawings and drawings from others.