<?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: Feature Selection is Invisible in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288026#M7477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange.&amp;nbsp; Are you defining the unique value renderer and the custom selection symbol in your code?&amp;nbsp; If you back up and set the layer's symbology and selection symbol in ArcMap (if available) for example and load the lyr or mxd in your engine application, do you get the same problem?&amp;nbsp; Do you get the problem with the selection not drawing in ArcMap too.&amp;nbsp; What if you use a simple symbol for the selection, do you get the same problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 20:02:23 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2012-03-21T20:02:23Z</dc:date>
    <item>
      <title>Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288022#M7473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a program in ArcEngine that displays a map. When I use a tool to select from the single feature layer that is Selectable the selection is drawn on the map using the symbol I have specified for the FeatureSelection.SelectionSymbol. This all works fine all day long. I then define a unique values renderer for that feature layer and activate it. Now when I select features in that layer they are invisible (they are there, I just can't see them - the symbol does not get drawn on top of the renderer symbol.) This is NOT a refresh issue!&amp;nbsp; I have refreshed the GeoSelection (and everything else) a 1000 different ways and as long as a renderer is active I cannot see the feature selection.&amp;nbsp; How do I get a feature selection to draw on top of everything???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288022#M7473</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2012-03-20T22:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288023#M7474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can see (by capturing the AfterDraw) that the view is redrawing in the specified order:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriViewBackground &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriViewGeography&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriViewGraphics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriViewGeoSelection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriViewForeground&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but still I don't see the selection when a renderer is active - does it work this way in ArcMap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 18:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288023#M7474</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2012-03-21T18:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288024#M7475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you raised the selection changed event?&amp;nbsp; If the selection is done on the featurelayer it is the IFeatureSelection.SelectionChanged method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 18:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288024#M7475</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-03-21T18:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288025#M7476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you raised the selection changed event?&amp;nbsp; If the selection is done on the featurelayer it is the IFeatureSelection.SelectionChanged method.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you saying that I should have this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
IFeatureSelection featureSelection = featureLayer as IFeatureSelection;
featureSelection.SelectionChanged();
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after the actual selection so that the map control knows that the feature selection has changed and must be redrawn? Didn't change anything. (I know the selection is actually taking place because I read the SelectionCount and update my status bar with that value.) The symbol (a hollow fill with bright colored lines) does not get drawn over the renderer fills but draws fine when no classification renderer is active. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is just supposed to magically 'work correctly' then what could I be doing to cause it to fail? There's nothing special about my map. No extensions, caches, dynamic displays or anything like that is active. The afterDraw shows (in order):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;drawn: initialize view&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drawn: background&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drawn: geography&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drawn: graphics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drawn: selection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drawn: foreground&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would tear my hair out but that doesn't make any more sense than what the program is doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288025#M7476</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2021-12-11T13:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288026#M7477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange.&amp;nbsp; Are you defining the unique value renderer and the custom selection symbol in your code?&amp;nbsp; If you back up and set the layer's symbology and selection symbol in ArcMap (if available) for example and load the lyr or mxd in your engine application, do you get the same problem?&amp;nbsp; Do you get the problem with the selection not drawing in ArcMap too.&amp;nbsp; What if you use a simple symbol for the selection, do you get the same problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 20:02:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288026#M7477</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-03-21T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288027#M7478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Strange.&amp;nbsp; Are you defining the unique value renderer and the custom selection symbol in your code?&amp;nbsp; If you back up and set the layer's symbology and selection symbol in ArcMap (if available) for example and load the lyr or mxd in your engine application, do you get the same problem?&amp;nbsp; Do you get the problem with the selection not drawing in ArcMap too.&amp;nbsp; What if you use a simple symbol for the selection, do you get the same problem?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have to do some hoop jumping to get ArcMap running again (license ran out) but yes I am defining selection symbol and unique (and numeric) renderer in code.&amp;nbsp; Turned off selection symbol and got the Cyan lines which exhibited the same behavior. It just appears that when a renderer is active "geoFeatureLayer.Renderer = featureRenderer;" then the selection will not overwrite the rendered polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how I get my symbol for the renderer (when esriGeometryType.esriGeometryPolygon):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// symbol is current symbol, 
// enumColor is just a predefined style gallery color ramp
symbol = GetFillSymbol( symbol as ISimpleFillSymbol, enumColors.Next(), 1 );

private ISymbol GetFillSymbol( ISimpleFillSymbol simpleFill, IColor nextColor, double size ) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( simpleFill == null )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; simpleFill = new SimpleFillSymbolClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp; ILineSymbol lineSymbol = new SimpleLineSymbolClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp; lineSymbol.Width = size;
&amp;nbsp;&amp;nbsp;&amp;nbsp; simpleFill.Color = nextColor;
&amp;nbsp;&amp;nbsp;&amp;nbsp; simpleFill.Outline = lineSymbol;

&amp;nbsp;&amp;nbsp;&amp;nbsp; return simpleFill as ISymbol;
}

//And I add it to the renderer with:
uniqueValueRenderer.AddValue( currentBreak, ClassifyFieldName, symbol );
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you actually create a renderer and select over it in ArcMap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288027#M7478</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2021-12-11T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288028#M7479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I narrowed my problem down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I apply a unique classification to a feature layer only then my selection code draws the selection on the map just as it should.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I apply a unique classification to a feature layer joined to an underlying SQL table using a memory relationship then the selection will not draw on the map!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help! Can anyone see why this might be?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 21:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288028#M7479</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2012-03-23T21:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288029#M7480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you apply the query filter, do you define the where clause with the table names qualified for the fields?&amp;nbsp; If you look at the displayselectionset from the IDisplayTable, are there any rows selected?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 13:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288029#M7480</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-03-26T13:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288030#M7481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you apply the query filter, do you define the where clause with the table names qualified for the fields?&amp;nbsp; If you look at the displayselectionset from the IDisplayTable, are there any rows selected?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use a selection routine that selects by shape (ActiveView.FocusMap.SelectByShape() based on the geometry selected by the tool.) If I cast and examine the layer after the selection then yes, the DisplaySelectionSet shows the correct count whether the selection is visible (no join) or not visible (feature layer is joined to SQL table.) I am correctly qualifying the join based on the uniquely generated dataset name and the classify is actually working because the proper colors are displayed for each unique value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something about a join that should cause the graphics to redraw in different order than is specified by the documentation? What is drawn by esriViewForeground? (That is the only thing that the "after draw handler" shows after esriViewGeoSelection.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 18:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288030#M7481</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2012-03-26T18:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Selection is Invisible</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288031#M7482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Foreground is used to draw directly to the display with the IDisplay.&amp;nbsp; You can do some neat things with it but the elements are gone on the next refresh (unless you draw in the after refresh event.)&amp;nbsp; I used it with engine to make a custom edit tool at 9.3.&amp;nbsp; I doubt it has any thing to do with this problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 12:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/feature-selection-is-invisible/m-p/288031#M7482</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-03-29T12:19:13Z</dc:date>
    </item>
  </channel>
</rss>

