Shoey Posted January 15, 2015 Share Posted January 15, 2015 Hi all I would like to know if there is a way similar to the XLIST command to display and list the layer properties of Xrefs but these Xrefs I would like to XLIST are attached Xrefs to the Parent Xref. As far as I know, XLIST in AutoCAD only lists the Parent layer properties. It does not dig deeper to nested Xrefs. I presume a lisp would do this? If anyone knows of one and willing to share, that would be appreciated. Many Thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 15, 2015 Share Posted January 15, 2015 Very quickly written, but may help: (defun c:laylist ( / ent ind sel ) (setq ind 0) (if (setq sel (nentselp)) (foreach ent (reverse (cons (car sel) (cadddr sel))) (princ "\n") (repeat ind (princ " ")) (if (< 0 ind)(princ "|\n")) (repeat ind (princ " ")) (princ "+--+ ") (princ (cdr (assoc 8 (entget ent)))) (setq ind (1+ ind)) ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
Shoey Posted January 15, 2015 Author Share Posted January 15, 2015 Lee - Not for the first time, thanks. Appreciate your time in replying to my question. Shoey Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 15, 2015 Share Posted January 15, 2015 You're welcome Shoey - the program could obviously be expanded extensively to list additional properties. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.