<?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 : Filter based on layer in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/5606198#M48751</link>
    <description>&lt;P&gt;Excellent answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But suppose I have to select an object that is on Layer1 OR layer2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if one needs to select objects on either Layer1 OR layer2?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any advice would be appreciated. IF i add || it doesn't seem to work here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2015 00:20:27 GMT</pubDate>
    <dc:creator>BKSpurgeon</dc:creator>
    <dc:date>2015-04-24T00:20:27Z</dc:date>
    <item>
      <title>Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326677#M48746</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a curve which is a set of lines and arcs.This is present on a layer.Can anyone provide me code to filter these objects based on layer.I also need to convert all the object ids to a single entity.Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gulzar&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 10:08:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326677#M48746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-11T10:08:54Z</dc:date>
    </item>
    <item>
      <title>Re : Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326686#M48747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About selection filters (extract from &lt;A target="_blank" href="http://www.acadnetwork.com/index.php?topic=85.0"&gt;here&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the .NET environment, a SelectionFilter is constructed with a TypedValue array.&lt;BR /&gt;A TypedValue can contain various Objects types in its Value property. The Object type is defined in the TypeCode property as an integer (or a DxfCode enum integer) which corresponds to the DXF group code of the Value.&lt;BR /&gt;For those who know AutoLISP, a TypedValue looks like a DXF dotted pair (even it is not the same thing, a dotted pair is a LISP specific data).&lt;BR /&gt;For the Values which type is String as entity type (DxfCode.Start = 0) or layer (DxfCode.Layer = 8), the Value can contain many patterns separted by commas and use wildcard patterns.&lt;BR /&gt;The filter can contain relational tests for the numerical values and logical grouping.&lt;BR /&gt;&lt;BR /&gt;The more complete documentation in the AutoCAD Developer's Help for building sofisticated SelectionFilters is in the AutoLISP Help:&lt;BR /&gt;&lt;EM&gt;AutoLISP developer's Guide &amp;gt; Using the AutoLISP Language &amp;gt; Using AutoLISP to Manipulate AutoCAD Objects &amp;gt; Selection Set Handling &amp;gt; Selection Set Filter Lists&lt;/EM&gt;&lt;BR /&gt;And the DXF group codes can be found in DXF Reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To join coincident curves into a polyline, you can get some inspiration from &lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=31865.msg446965#msg446965"&gt;this&lt;/A&gt;. It uses the PolylineSegment and PolylineSegmentCollection classes defined in the GeometryExtensions assemby available &lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=31865.msg373672#msg373672"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 10:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326686#M48747</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2013-07-11T10:25:29Z</dc:date>
    </item>
    <item>
      <title>Re : Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326690#M48748</link>
      <description>&lt;P&gt;Thanks a lot.I just have a query that selection filter is a typed array if i have only value then how do i declare it.In the below case it gives error.How do i rectify it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dim typVal &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;TypedValue&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;t&lt;FONT face="arial,helvetica,sans-serif"&gt;ypVal&lt;/FONT&gt; = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt; TypedValue(DxfCode.LayerName, &lt;FONT color="#a31515"&gt;&lt;FONT color="#a31515"&gt;"FirstBias"&lt;/FONT&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dim &lt;/FONT&gt;&lt;FONT size="2"&gt;sf &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; SelectionFilter = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt; SelectionFilter(typVal)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 10:38:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326690#M48748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-11T10:38:29Z</dc:date>
    </item>
    <item>
      <title>Re : Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326789#M48749</link>
      <description>&lt;P&gt;The SelectionFilter constructor argument have to be&amp;nbsp; TypedValue &lt;STRONG&gt;array&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            Dim typVal As TypedValue
            typVal = New TypedValue(DxfCode.LayerName, "FirstBias")
            Dim typValArray(0) As TypedValue
            typValArray(0) = typVal
            Dim sf As SelectionFilter = New SelectionFilter(typValArray)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Or, more concisely:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim sf As SelectionFilter = New SelectionFilter(New TypedValue() {New TypedValue(8, "Calque7")})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 11:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326789#M48749</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2013-07-11T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re : Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326804#M48750</link>
      <description>&lt;P&gt;Thanks a lot for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 11:55:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/4326804#M48750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-11T11:55:47Z</dc:date>
    </item>
    <item>
      <title>Re : Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/5606198#M48751</link>
      <description>&lt;P&gt;Excellent answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But suppose I have to select an object that is on Layer1 OR layer2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if one needs to select objects on either Layer1 OR layer2?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any advice would be appreciated. IF i add || it doesn't seem to work here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 00:20:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/5606198#M48751</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2015-04-24T00:20:27Z</dc:date>
    </item>
    <item>
      <title>Re : Filter based on layer</title>
      <link>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/5606203#M48752</link>
      <description>&lt;P&gt;Found the solution! here it is:&amp;nbsp;&lt;A target="_blank" href="http://forums.autodesk.com/t5/net/selection-filter-on-multiple-layers/m-p/3431721/highlight/true#M28493"&gt;http://forums.autodesk.com/t5/net/selection-filter-on-multiple-layers/m-p/3431721/highlight/true#M28493&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just create a string with possible layer names. and voila!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 00:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/filter-based-on-layer/m-p/5606203#M48752</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2015-04-24T00:25:25Z</dc:date>
    </item>
  </channel>
</rss>

