Jump to content

Listing nested xref layer properties


Shoey

Recommended Posts

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

Link to comment
Share on other sites

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)
)

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...