<?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: Selection Set Filter with more than two object filters in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742609#M85540</link>
    <description>&lt;P&gt;use a comma, and wildcards&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(Db.DxfCode.kDxfStart, "*TEXT,*LEADER")&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 28 Jul 2025 11:37:53 GMT</pubDate>
    <dc:creator>daniel_cadext</dc:creator>
    <dc:date>2025-07-28T11:37:53Z</dc:date>
    <item>
      <title>Selection Set Filter with more than two object filters</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742588#M85538</link>
      <description>&lt;P&gt;I am writing a program that allows the user to select the following objects: MTEXT, TEXT, and MLEADER, and iteratively go through them and edit the text. The problem arises when I try to put all three object types in the selection filter. Below is what I have currently:&lt;/P&gt;&lt;LI-CODE lang="visual"&gt;Dim peo As New PromptSelectionOptions With {
        .MessageForAdding = vbLf &amp;amp; "Select Text, Mtext, or MLeader to adjust text: ",
        .MessageForRemoval = vbLf &amp;amp; "Select to Remove: "
        }
Dim filterList As New List(Of TypedValue)
filterList.Add(New TypedValue(DxfCode.Operator, "&amp;lt;OR"))
filterList.Add(New TypedValue(DxfCode.Start, "MTEXT"))
filterList.Add(New TypedValue(DxfCode.Operator, "&amp;lt;OR"))
filterList.Add(New TypedValue(DxfCode.Start, "TEXT"))
filterList.Add(New TypedValue(DxfCode.Start, "MLEADER"))
Dim acSelFtr As SelectionFilter = New SelectionFilter(filterList.ToArray())
Dim selectedResult As PromptSelectionResult = acEd.GetSelection(peo, acSelFtr)
If selectedResult.Status &amp;lt;&amp;gt; PromptStatus.OK Then Exit Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run it in the current configuration is the program stops before it actually gets the selection, making me think that my filter is set up incorrectly. I could not find any examples online of a filter containing three objects or more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much help would be appreciated! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742588#M85538</guid>
      <dc:creator>jdaltonAWVZ3</dc:creator>
      <dc:date>2025-07-28T11:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Set Filter with more than two object filters</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742607#M85539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try like this:&lt;/P&gt;
&lt;LI-CODE lang="visual"&gt;Dim filterList As New List(Of TypedValue)
filterList.Add(New TypedValue(DxfCode.Operator, "&amp;lt;OR"))
filterList.Add(New TypedValue(DxfCode.Start, "MTEXT"))
filterList.Add(New TypedValue(DxfCode.Start, "TEXT"))
filterList.Add(New TypedValue(DxfCode.Start, "MLEADER"))
filterList.Add(New TypedValue(DxfCode.Operator, "OR&amp;gt;"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or simply:&lt;/P&gt;
&lt;LI-CODE lang="visual"&gt;
filterList.Add(New TypedValue(DxfCode.Start, "TEXT,MTEXT,MLEADER"))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:34:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742607#M85539</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2025-07-28T11:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Set Filter with more than two object filters</title>
      <link>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742609#M85540</link>
      <description>&lt;P&gt;use a comma, and wildcards&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(Db.DxfCode.kDxfStart, "*TEXT,*LEADER")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:37:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/selection-set-filter-with-more-than-two-object-filters/m-p/13742609#M85540</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2025-07-28T11:37:53Z</dc:date>
    </item>
  </channel>
</rss>

