<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: xlist function in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9868127#M198101</link>
    <description>&lt;P&gt;Lee Mac level elegant.&amp;nbsp;&amp;nbsp;Hope you don't mind, but I gonna play with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of my wishlist items that acad &lt;STRONG&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;/STRONG&gt; inching closer to;&lt;/P&gt;&lt;P&gt;...an effortless deep inquiry into nested, daisy-chained objects...&lt;/P&gt;&lt;P&gt;- Either in a "rollover &amp;amp; show" info of the embedded object the way they have now, but with a toggle or scroll bar to drill down, &lt;EM&gt;beyond level 0&lt;/EM&gt;, thru its linked reference pointers.&lt;/P&gt;&lt;P&gt;- or maybe make the "Name" cell in the PropertiesDB a hot button that would sprout pop-up trees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...maybe throw in a toggle to see it DXF format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the building blocs for it all over acadspace but its not quite coalesced yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;You hear that AUTODESK&lt;/EM&gt;?"&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 19:10:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-13T19:10:46Z</dc:date>
    <item>
      <title>xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/7638539#M198093</link>
      <description>&lt;P&gt;I put my xref function onto a layer named XREF in my current file.&amp;nbsp;My&amp;nbsp;goal is to check which layer a specific linework is on when I working with the current file. So I use the XLIST function to check. However, I could only read the lines are on XREF layer, where I put my xref file on. I am not able to know exactly which layer the line is on in the xref file. Therefore, I am not able to edit the specific layer unless reopen the xref file. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 14:38:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/7638539#M198093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/7638656#M198094</link>
      <description>Is this because the dialog is not wide enough?&lt;BR /&gt;&lt;BR /&gt;If so, see this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://lynn.blogs.com/lynn_allens_blog/2009/07/an-autocad-hip-tip-for-xlist-with-long-layer-names.html" target="_blank"&gt;http://lynn.blogs.com/lynn_allens_blog/2009/07/an-autocad-hip-tip-for-xlist-with-long-layer-names.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 15:07:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/7638656#M198094</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2017-12-20T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/7639494#M198095</link>
      <description>&lt;P&gt;It may be because the entity resides on a layer of an attached xref within the drawing you xref'd.&lt;BR /&gt;For that you will need to use the "probe.lsp" and associated "probe.dcl" files that can be found with a little search on this site. &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-file-in-autocad-mac/m-p/7299599/highlight/true#M357186" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-file-in-autocad-mac/m-p/7299599/highlight/true#M357186&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:09:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/7639494#M198095</guid>
      <dc:creator>deke01</dc:creator>
      <dc:date>2017-12-20T19:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function, alternate update</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9859828#M198096</link>
      <description>&lt;P&gt;No *.dcl required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just paying back what little I can.&lt;/P&gt;&lt;P&gt;B. Watts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 19:22:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9859828#M198096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T19:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9859940#M198097</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... I use the XLIST function to check. However, ... I am not able to know exactly which layer the line is on in the xref file. Therefore, I am not able to edit the specific layer unless reopen the xref file. Any ideas?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Slightly stale thread, but since it's been revived....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all you need is the &lt;EM&gt;Layer&lt;/EM&gt;&amp;nbsp; of a nested object, will this do?&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;(cdr (assoc 8 (entget (car (nentsel)))))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9859940#M198097</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-11-10T20:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9860040#M198098</link>
      <description>That post was the result of the intersection of:&lt;BR /&gt;- having just used xlist ten minutes before&lt;BR /&gt;- needing to look something up(unrelated to xlist) on &lt;A href="https://forums.autodesk.com/" target="_blank"&gt;https://forums.autodesk.com/&lt;/A&gt; and spotting the xlist thread along the way&lt;BR /&gt;- lunch &amp;amp; web surfing time.&lt;BR /&gt;The forum has been a lot of help over the years, so I decided to contribute back, while gnashing my tomato provolone panini.&lt;BR /&gt;I didn't notice the timestamp.&lt;BR /&gt;Best regards&lt;BR /&gt;b&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9860040#M198098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9860157#M198099</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... to know exactly which layer the line is on in the xref file ... &lt;FONT color="#000000"&gt;&lt;STRONG&gt;to edit the specific layer&lt;/STRONG&gt;&lt;/FONT&gt; ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;So suppose a Line or something is drawn on &lt;STRONG&gt;Layer 0&lt;/STRONG&gt; and is part of a Block definition?&amp;nbsp; If you want to &lt;STRONG&gt;&lt;FONT color="#000000"&gt;edit the Layer&lt;/FONT&gt;&lt;/STRONG&gt; on which it &lt;EM&gt;appears&lt;/EM&gt;, i.e. the Layer whose properties determine how it looks in the drawing, to change that if you change the Layer's color or linetype or something, then you &lt;EM&gt;don't&lt;/EM&gt;&amp;nbsp; want to be told Layer 0 if you pick on it, but rather &lt;EM&gt;the Layer that the Block is inserted on&lt;/EM&gt;.&amp;nbsp; [My previous suggestion will give you Layer 0, being the lowest-nested-level Layer of the object.]&amp;nbsp; And what if that Block is also inserted on Layer 0 and is nested into another Block definition?&amp;nbsp; And maybe another?&amp;nbsp; And what if that one's nested in an Xref?&amp;nbsp; And that's nested in another Xref?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a command that finds the "apparent" layer, i.e. the lowest-nested-level Layer that is &lt;STRONG&gt;&lt;EM&gt;not Layer 0&lt;/EM&gt;&lt;/STRONG&gt;, of any selected object or nested object, to any nesting level.&amp;nbsp; [It also works on top-level objects, not just nested ones.]&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:LNO
; = Layer of Nested Object [not Layer 0 if nested in object on another Layer]
  (/ ent edata lay)
  (setq
    edata (entget (car (setq ent (nentsel))))
    lay ; = Layer it's on
      (if (= (cdr (assoc 8 edata)) "0"); deepest-nested on Layer 0
        (cond ; then
          ((&amp;gt; (length ent) 2); nested entity [other than Attribute] in Block/Xref
            (setq nestlist (last (nentselp (cadr ent)))); stack of references nested in
            (while
              (and
                nestlist ; still nesting level(s) remaining
                (= (setq nlay (cdr (assoc 8 (entget (car nestlist))))) "0"); = Nested Layer still 0
              ); and
              (setq nestlist (cdr nestlist)); move up a level if present
            ); while
            nlay
              ; return lowest-level non-0 Layer of nested or containing reference(s);
              ; 0 if that all the way up
          ); non-Attribute nested entity on Layer 0 condition
          ((= (cdr (assoc 0 edata)) "ATTRIB"); Attribute in Block
            (cdr (assoc 8 (entget (cdr (assoc 330 edata))))); Block's Layer
          ); Attribute on Layer 0 condition
          ("0"); none-of-the-above condition
        ); cond - then
        (cdr (assoc 8 edata)); else - Layer of entity/nested entity
      ); if &amp;amp; lay
  ); setq
); defun&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Nov 2020 21:25:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9860157#M198099</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-11-10T21:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9868127#M198101</link>
      <description>&lt;P&gt;Lee Mac level elegant.&amp;nbsp;&amp;nbsp;Hope you don't mind, but I gonna play with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of my wishlist items that acad &lt;STRONG&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;/STRONG&gt; inching closer to;&lt;/P&gt;&lt;P&gt;...an effortless deep inquiry into nested, daisy-chained objects...&lt;/P&gt;&lt;P&gt;- Either in a "rollover &amp;amp; show" info of the embedded object the way they have now, but with a toggle or scroll bar to drill down, &lt;EM&gt;beyond level 0&lt;/EM&gt;, thru its linked reference pointers.&lt;/P&gt;&lt;P&gt;- or maybe make the "Name" cell in the PropertiesDB a hot button that would sprout pop-up trees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...maybe throw in a toggle to see it DXF format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the building blocs for it all over acadspace but its not quite coalesced yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;You hear that AUTODESK&lt;/EM&gt;?"&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 19:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/9868127#M198101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-13T19:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: xlist function, alternate update</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/11838212#M198102</link>
      <description>&lt;P&gt;תודה רבה&lt;/P&gt;&lt;P&gt;MERCI BEAUCOUP&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 06:14:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/xlist-function/m-p/11838212#M198102</guid>
      <dc:creator>granat1</dc:creator>
      <dc:date>2023-03-22T06:14:51Z</dc:date>
    </item>
  </channel>
</rss>

