<?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 : Problem: How to remove Lines (or other entities) from a selection set? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637841#M40024</link>
    <description>&lt;P&gt;Thank you sir, this helps immensely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was considering doing exactly as you suggested, but this would involve rewriting of some code, which I am lothe to do.&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>Sat, 16 May 2015 13:36:23 GMT</pubDate>
    <dc:creator>BKSpurgeon</dc:creator>
    <dc:date>2015-05-16T13:36:23Z</dc:date>
    <item>
      <title>Problem: How to remove Lines (or other entities) from a selection set?</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637694#M40022</link>
      <description>&lt;P&gt;Couldn't readily discern any methods within the selectionSet class which readily allows one to add and remove items. The current methods within the class are (CopyTo, FromObjectIds, GetEnumerator, GetObjectIds, ToString) - none to add or remove items. My preference is to work with the existing selection set rather than to create a new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Is there any way of removing Lines from a given selection set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Your assistance is greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;BK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2015 04:10:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637694#M40022</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2015-05-16T04:10:39Z</dc:date>
    </item>
    <item>
      <title>Re : Problem: How to remove Lines (or other entities) from a selection set?</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637725#M40023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AFAIK you cannot change the content of a selection set after the selection ends.&lt;/P&gt;
&lt;P&gt;During the selection, you can handle the SelectionAdded event to filter as shown in &lt;A href="https://forums.autodesk.com/t5/net/a-tricky-question-selectionfilters-how-to-filter-by-line-angle/m-p/5607997/highlight/true#M44263" target="_blank"&gt;this thread&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it seems to me, it would be much more simple to convert the selection set into an ObjectIdCollection (or a List&amp;lt;Entity&amp;gt;) to make the changes to the collection, and if you finally really need a SelectionSet object, rebuild one using the SelectionSet.FromObjectIds() method.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2015 06:45:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637725#M40023</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2015-05-16T06:45:12Z</dc:date>
    </item>
    <item>
      <title>Re : Problem: How to remove Lines (or other entities) from a selection set?</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637841#M40024</link>
      <description>&lt;P&gt;Thank you sir, this helps immensely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was considering doing exactly as you suggested, but this would involve rewriting of some code, which I am lothe to do.&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>Sat, 16 May 2015 13:36:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-how-to-remove-lines-or-other-entities-from-a-selection/m-p/5637841#M40024</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2015-05-16T13:36:23Z</dc:date>
    </item>
  </channel>
</rss>

