<?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 Define Rules for Selection Filters (.NET) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129592#M20881</link>
    <description>Hi everybody, I am learning AutoCAD .NET. Currently, I want to create a command to select all objects are blocks (only block name is ABC) and polyline, I do not understand about selection filters options and I am trying to define rule for selection filter below but failed. Can anyone help me with this problem. If possible could you please give me a document of Selection Filters. Thanks everyone so much. TypedValue[] tv = new TypedValue[3]; tv.SetValue(new TypedValue((int)DxfCode.Start, "INSERT"), 0); tv.SetValue(new TypedValue((int)DxfCode.BlockName, "ABC"), 1); tv.SetValue(new TypedValue((int)DxfCode.Start, "LWPOLYLINE"), 2);</description>
    <pubDate>Wed, 06 Nov 2019 01:33:55 GMT</pubDate>
    <dc:creator>phuochung_dang</dc:creator>
    <dc:date>2019-11-06T01:33:55Z</dc:date>
    <item>
      <title>Define Rules for Selection Filters (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129592#M20881</link>
      <description>Hi everybody, I am learning AutoCAD .NET. Currently, I want to create a command to select all objects are blocks (only block name is ABC) and polyline, I do not understand about selection filters options and I am trying to define rule for selection filter below but failed. Can anyone help me with this problem. If possible could you please give me a document of Selection Filters. Thanks everyone so much. TypedValue[] tv = new TypedValue[3]; tv.SetValue(new TypedValue((int)DxfCode.Start, "INSERT"), 0); tv.SetValue(new TypedValue((int)DxfCode.BlockName, "ABC"), 1); tv.SetValue(new TypedValue((int)DxfCode.Start, "LWPOLYLINE"), 2);</description>
      <pubDate>Wed, 06 Nov 2019 01:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129592#M20881</guid>
      <dc:creator>phuochung_dang</dc:creator>
      <dc:date>2019-11-06T01:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Define Rules for Selection Filters (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129704#M20882</link>
      <description>&lt;P&gt;try this :&lt;/P&gt;&lt;PRE&gt;            TypedValue[] acTypValAr = new TypedValue[7];
            acTypValAr.SetValue(new TypedValue((int)DxfCode.Operator, "&amp;lt;OR"), 0);
            acTypValAr.SetValue(new TypedValue((int)DxfCode.Operator, "&amp;lt;AND"), 1);
            acTypValAr.SetValue(new TypedValue((int)DxfCode.Start, "INSERT"), 2);
            acTypValAr.SetValue(new TypedValue((int)DxfCode.BlockName, "ABC"), 3);
            acTypValAr.SetValue(new TypedValue((int)DxfCode.Operator, "AND&amp;gt;"), 4);
            acTypValAr.SetValue(new TypedValue((int)DxfCode.Start, "LWPOLYLINE"), 5);
            acTypValAr.SetValue(new TypedValue((int)DxfCode.Operator, "OR&amp;gt;"), 6);&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Nov 2019 04:16:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129704#M20882</guid>
      <dc:creator>GiaBach</dc:creator>
      <dc:date>2019-11-06T04:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Define Rules for Selection Filters (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129843#M20883</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most complete documentation abour Selection Set Filters is the AutoLISP one. You should read &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-7BE77062-C359-4D01-915B-69CF672C653B" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;this page&lt;/STRONG&gt;&lt;/A&gt; and the related topics:&lt;/P&gt;
&lt;UL class="ullinks"&gt;
&lt;LI class="link ulchildlink"&gt;&lt;STRONG&gt;&lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-11EA0ABD-AE29-4DD7-92A5-DFF6EC1C9799" data-url="https://help.autodesk.com/cloudhelp/2019/ENU/AutoCAD-AutoLISP/files/GUID-11EA0ABD-AE29-4DD7-92A5-DFF6EC1C9799.htm" target="_blank"&gt;About Wild-Card Patterns in Selection Set Filter Lists (AutoLISP)&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI class="link ulchildlink"&gt;&lt;STRONG&gt;&lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-84C3CDF5-DF88-4473-A10D-C7778EE037C8" data-url="https://help.autodesk.com/cloudhelp/2019/ENU/AutoCAD-AutoLISP/files/GUID-84C3CDF5-DF88-4473-A10D-C7778EE037C8.htm" target="_blank"&gt;About Filtering for Extended Data in a Selection Set (AutoLISP)&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI class="link ulchildlink"&gt;&lt;STRONG&gt;&lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-877CEEA5-0D88-48DF-8450-B9421031A1B7" data-url="https://help.autodesk.com/cloudhelp/2019/ENU/AutoCAD-AutoLISP/files/GUID-877CEEA5-0D88-48DF-8450-B9421031A1B7.htm" target="_blank"&gt;About Relational Tests in Filter Lists for Selection Sets (AutoLISP)&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI class="link ulchildlink"&gt;&lt;STRONG&gt;&lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-5CB54129-22A1-42B9-B97C-2D2F5597F90E" data-url="https://help.autodesk.com/cloudhelp/2019/ENU/AutoCAD-AutoLISP/files/GUID-5CB54129-22A1-42B9-B97C-2D2F5597F90E.htm" target="_blank"&gt;About Logical Grouping of Selection Filter Tests (AutoLISP)&lt;/A&gt;&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Transposing code is quite easy, where AutoLISP uses "dotted pairs", .NET uses TypedValue instances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            var filter = new SelectionFilter(new[]
            {
                new TypedValue(-4, "&amp;lt;OR"),          // DxfCode.Operator
                new TypedValue(-4, "&amp;lt;AND"),         // DxfCode.Operator
                new TypedValue(0, "INSERT"),        // DxfCode.Start
                new TypedValue(2, "ABC"),           // DxfCode.BlockName
                new TypedValue(-4, "AND&amp;gt;"),         // DxfCode.Operator
                new TypedValue(0, "LWPOLYLINE"),    // DxfCode.Start
                new TypedValue(-4, "OR&amp;gt;")
            });
&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Nov 2019 06:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9129843#M20883</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-11-06T06:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Define Rules for Selection Filters (.NET)</title>
      <link>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9140580#M20884</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks everybody for your help to solve this problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 05:22:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/define-rules-for-selection-filters-net/m-p/9140580#M20884</guid>
      <dc:creator>phuochung_dang</dc:creator>
      <dc:date>2019-11-12T05:22:04Z</dc:date>
    </item>
  </channel>
</rss>

