<?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 Selection Filter to ignore XREF in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4795327#M45562</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to ignore XREF's when doing a Editor.SelectAll?&lt;/P&gt;&lt;P&gt;The reason I ask is purely based on efficiency. I am searching on polylines and circles in the current database, but don't care about any xref'd databases. Sometimes this can take a little while if there are quite a few xref'd drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TypedValue[] types = new TypedValue[] { new TypedValue((int)DxfCode.Start, "LWPOLYLINE,CIRCLE") };
PromptSelectionResult selectionRes = ed.SelectAll(new SelectionFilter(types));&lt;/PRE&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2014 10:09:06 GMT</pubDate>
    <dc:creator>chris_mills</dc:creator>
    <dc:date>2014-02-05T10:09:06Z</dc:date>
    <item>
      <title>Selection Filter to ignore XREF</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4795327#M45562</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to ignore XREF's when doing a Editor.SelectAll?&lt;/P&gt;&lt;P&gt;The reason I ask is purely based on efficiency. I am searching on polylines and circles in the current database, but don't care about any xref'd databases. Sometimes this can take a little while if there are quite a few xref'd drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TypedValue[] types = new TypedValue[] { new TypedValue((int)DxfCode.Start, "LWPOLYLINE,CIRCLE") };
PromptSelectionResult selectionRes = ed.SelectAll(new SelectionFilter(types));&lt;/PRE&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 10:09:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4795327#M45562</guid>
      <dc:creator>chris_mills</dc:creator>
      <dc:date>2014-02-05T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Filter to ignore XREF</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4796885#M45563</link>
      <description>&lt;P&gt;Unfortunately no, not directly through your selection filter, unless all of your external references are on a specific layer, etc. which you could exclude using (-4, "&amp;lt;NOT"), etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead, consider iterating the resultant ObjectIds, testing for ObjectId.ObjectClass.Name ==&amp;nbsp;"AcDbBlockReference", and then subsequently test for XrefStatus in order to exclude from your procedure(s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:58:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4796885#M45563</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2014-02-05T21:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Filter to ignore XREF</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4796997#M45564</link>
      <description>&lt;P&gt;Wouldn't the filter value "CIRCLE,LWPOLYLINE" is good enough to only select circle and polyline, and exclude anything else, including Xref, which is an "INSERT" (BlockReference)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you run your code? Did it not only select circles and polylines in the current drawing database, but also select those in the Xrefed drawing (I do not think so)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 22:50:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4796997#M45564</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2014-02-05T22:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Filter to ignore XREF</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4797073#M45565</link>
      <description>&lt;P&gt;There does seem to be a bit of confusion between the first question asked, and the code, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 23:28:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4797073#M45565</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2014-02-05T23:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Filter to ignore XREF</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4797817#M45566</link>
      <description>&lt;P&gt;Appologies, I cannot repeat the issue. Originally inserting the XREF's dramatically slowed down the editor selection, and removing them much improved it, I can't even blame a network related slow-down. As norman.yuan quite rightly stated, the filter value doesn't include any of the nested entities within the blocks. I've thoroughly tested it and cannot repeat it.&lt;/P&gt;&lt;P&gt;Sorry guys, it's been a long week.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-filter-to-ignore-xref/m-p/4797817#M45566</guid>
      <dc:creator>chris_mills</dc:creator>
      <dc:date>2014-02-06T10:07:52Z</dc:date>
    </item>
  </channel>
</rss>

