<?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 Set selection symbol of feature layer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-selection-symbol-of-feature-layer/m-p/1145531#M7807</link>
    <description>&lt;P&gt;Using the Pro SDK 2.9, I'm trying to update the style of the selected features in a layer.&lt;/P&gt;&lt;P&gt;This example shows how to change the color of selected features -&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/44183d0d5a9bc5da6fb8b9229211cc707dd2b874/Map-Authoring/CIMExamples/ChangeLayerSelectionColor.cs" target="_blank" rel="noopener"&gt;arcgis-pro-sdk-community-samples&lt;/A&gt;&amp;nbsp;.Similarly, when I try to update the selection symbology of a line layer, the code does not work.&lt;/P&gt;&lt;P&gt;Below is the snippet of what I'm trying:&lt;/P&gt;&lt;P&gt;//layer is a FeatureLayer&lt;/P&gt;&lt;P&gt;var layerDef = layer.GetDefinition() as CIMBasicFeatureLayer;&lt;/P&gt;&lt;P&gt;layerDef.UseSelectionSymbol = true;&lt;BR /&gt;//layerDef.SelectionColor = ColorFactory.Instance.RedRGB;&lt;/P&gt;&lt;P&gt;layerDef.SelectionSymbol = new CIMSymbolReference()&lt;BR /&gt;{&lt;BR /&gt;Symbol = SymbolFactory.Instance.ConstructLineSymbol(&lt;BR /&gt;CIMColor.CreateRGBColor(255, 0, 0), 5, SimpleLineStyle.Dot),&lt;BR /&gt;SymbolName = "Dotted red line",&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;layer.SetDefinition(layerDef);&lt;/P&gt;&lt;P&gt;Am I missing anything?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 11:03:51 GMT</pubDate>
    <dc:creator>KarthikAditya</dc:creator>
    <dc:date>2022-02-18T11:03:51Z</dc:date>
    <item>
      <title>Set selection symbol of feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-selection-symbol-of-feature-layer/m-p/1145531#M7807</link>
      <description>&lt;P&gt;Using the Pro SDK 2.9, I'm trying to update the style of the selected features in a layer.&lt;/P&gt;&lt;P&gt;This example shows how to change the color of selected features -&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/44183d0d5a9bc5da6fb8b9229211cc707dd2b874/Map-Authoring/CIMExamples/ChangeLayerSelectionColor.cs" target="_blank" rel="noopener"&gt;arcgis-pro-sdk-community-samples&lt;/A&gt;&amp;nbsp;.Similarly, when I try to update the selection symbology of a line layer, the code does not work.&lt;/P&gt;&lt;P&gt;Below is the snippet of what I'm trying:&lt;/P&gt;&lt;P&gt;//layer is a FeatureLayer&lt;/P&gt;&lt;P&gt;var layerDef = layer.GetDefinition() as CIMBasicFeatureLayer;&lt;/P&gt;&lt;P&gt;layerDef.UseSelectionSymbol = true;&lt;BR /&gt;//layerDef.SelectionColor = ColorFactory.Instance.RedRGB;&lt;/P&gt;&lt;P&gt;layerDef.SelectionSymbol = new CIMSymbolReference()&lt;BR /&gt;{&lt;BR /&gt;Symbol = SymbolFactory.Instance.ConstructLineSymbol(&lt;BR /&gt;CIMColor.CreateRGBColor(255, 0, 0), 5, SimpleLineStyle.Dot),&lt;BR /&gt;SymbolName = "Dotted red line",&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;layer.SetDefinition(layerDef);&lt;/P&gt;&lt;P&gt;Am I missing anything?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 11:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-selection-symbol-of-feature-layer/m-p/1145531#M7807</guid>
      <dc:creator>KarthikAditya</dc:creator>
      <dc:date>2022-02-18T11:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set selection symbol of feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-selection-symbol-of-feature-layer/m-p/1145641#M7808</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is no possibility to change symbol from ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GintautasKmieliauskas_0-1645199446566.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34346i59DB1C5D117C5296/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GintautasKmieliauskas_0-1645199446566.png" alt="GintautasKmieliauskas_0-1645199446566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, I think, these properties&amp;nbsp; (&lt;SPAN&gt;UseSelectionSymbol,&amp;nbsp;SelectionSymbol&lt;/SPAN&gt;) are reserved for future implementation.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 15:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-selection-symbol-of-feature-layer/m-p/1145641#M7808</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-02-18T15:52:38Z</dc:date>
    </item>
  </channel>
</rss>

