<?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: Make a new selection from an existing selection in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437719#M11850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure why you are so sure that it is not Graphics (i.e., Elements).&amp;nbsp; There is nothing special about that 'Sub-Selection' other than its color.&amp;nbsp; A SelectionSet is nothing more than a collections of Features which you have the ability to query and are drawn in a different color on the screen.&amp;nbsp; You could just as easily create your own collection of Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; List&amp;lt;IFeature&amp;gt; subSelection = new List&amp;lt;IFeature&amp;gt;();

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and draw these Features as IElements (setting Locked=true so the user cannot modify them) in a color that signifies what they are.&amp;nbsp; Using Linq you could even make you own class that inherits for List&amp;lt;IFeature&amp;gt; and give it similar query abilities to what the SelectionSet provides.&amp;nbsp; I am just not sure I understand what you think is so special about the Features that ArcMap highlights in the situation you describe and why just using your own collection and highlighting them yourself does not accomplish the goal you are trying to achieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:35:53 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2021-12-11T19:35:53Z</dc:date>
    <item>
      <title>Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437713#M11844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to make a new selection from an existing selection, keep the old selection and change the highlight color of the new selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 10:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437713#M11844</guid>
      <dc:creator>AysberqTundra</dc:creator>
      <dc:date>2012-06-14T10:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437714#M11845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unless I'm wrong I've always understood that a FeatureLayer can only have 1 selection, therefore what you are asking is not possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An off the top of my head idea is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try creating a field and update that to indicate the first selection. Create a second field and update that with your second selection. Combine the values into these 2 fields into a third field and symbolize based upon the third field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 08:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437714#M11845</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-06-15T08:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437715#M11846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this will add the new selection to the old, dont know about the color:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pFeatureSelection.SelectFeatures pQueryFilter, &lt;/SPAN&gt;&lt;STRONG&gt;esriSelectionResultAdd&lt;/STRONG&gt;&lt;SPAN&gt;, False&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 11:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437715#M11846</guid>
      <dc:creator>MauriceSchoenert</dc:creator>
      <dc:date>2012-06-15T11:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437716#M11847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for all replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I select a row (from selected rows) in attribute table of ArcMap, ArcMap highlights the feature on map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to do the same. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If ArcMap has this functionality, I think it must be possible for custom application too. Am I wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 03:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437716#M11847</guid>
      <dc:creator>AysberqTundra</dc:creator>
      <dc:date>2012-06-18T03:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437717#M11848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for all replies.&lt;BR /&gt;&lt;BR /&gt;But when I select a row (from selected rows) in attribute table of ArcMap, ArcMap highlights the feature on map.&lt;BR /&gt;I want to do the same. &lt;BR /&gt;If ArcMap has this functionality, I think it must be possible for custom application too. Am I wrong?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The behavior you mention in your second post differs from what you are asking in your initial post.&amp;nbsp; The behavior you describe above is simply ArcMap highlighting a feature you selected, this differs from having two distinct selection sets which is what your initial post seems to be asking about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is happening in the case above is basically a highlight graphic is being drawn with the same shape as the feature.&amp;nbsp; This is certainly something that could be done.&amp;nbsp; You could keep you selection and sub-selection set as collections withing your application and draw your own graphics using the shape of the features and these graphics could differ.&amp;nbsp; To me this seems like it would accomplish your goal, it is different though from having two &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;SelectionSets &lt;/SPAN&gt;&lt;SPAN&gt;for the same &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;FeatureLayer&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Good Luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 04:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437717#M11848</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2012-06-18T04:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437718#M11849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply, Joe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But in ArcMap this functionality has been provided not using graphics. It is something other. Can you give me any other idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 05:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437718#M11849</guid>
      <dc:creator>AysberqTundra</dc:creator>
      <dc:date>2012-06-18T05:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437719#M11850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure why you are so sure that it is not Graphics (i.e., Elements).&amp;nbsp; There is nothing special about that 'Sub-Selection' other than its color.&amp;nbsp; A SelectionSet is nothing more than a collections of Features which you have the ability to query and are drawn in a different color on the screen.&amp;nbsp; You could just as easily create your own collection of Features&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; List&amp;lt;IFeature&amp;gt; subSelection = new List&amp;lt;IFeature&amp;gt;();

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and draw these Features as IElements (setting Locked=true so the user cannot modify them) in a color that signifies what they are.&amp;nbsp; Using Linq you could even make you own class that inherits for List&amp;lt;IFeature&amp;gt; and give it similar query abilities to what the SelectionSet provides.&amp;nbsp; I am just not sure I understand what you think is so special about the Features that ArcMap highlights in the situation you describe and why just using your own collection and highlighting them yourself does not accomplish the goal you are trying to achieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437719#M11850</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2021-12-11T19:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make a new selection from an existing selection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437720#M11851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not sure why you are so sure that it is not Graphics (i.e., Elements).&amp;nbsp; There is nothing special about that 'Sub-Selection' other than its color.&amp;nbsp; A SelectionSet is nothing more than a collections of Features which you have the ability to query and are drawn in a different color on the screen.&amp;nbsp; You could just as easily create your own collection of Features&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; List&amp;lt;IFeature&amp;gt; subSelection = new List&amp;lt;IFeature&amp;gt;();

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and draw these Features as IElements (setting Locked=true so the user cannot modify them) in a color that signifies what they are.&amp;nbsp; Using Linq you could even make you own class that inherits for List&amp;lt;IFeature&amp;gt; and give it similar query abilities to what the SelectionSet provides.&amp;nbsp; I am just not sure I understand what you think is so special about the Features that ArcMap highlights in the situation you describe and why just using your own collection and highlighting them yourself does not accomplish the goal you are trying to achieve.&lt;BR /&gt;&lt;BR /&gt;Good Luck&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure, because when I add custom graphics I can select it with graphics select tool, but when I do this process using ArcMap attribute table I can't select any object with graphics select tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/make-a-new-selection-from-an-existing-selection/m-p/437720#M11851</guid>
      <dc:creator>AysberqTundra</dc:creator>
      <dc:date>2021-12-11T19:35:56Z</dc:date>
    </item>
  </channel>
</rss>

