<?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 Graphic Layer - Pro making clone on just added graphic in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphic-layer-pro-making-clone-on-just-added/m-p/1001626#M5739</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;In ArcGIS pro 2.6, in my maptool,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add the graphicslayer (if not in the map), and add the element after polygon is drawn.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers#targetgraphicslayer" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers#targetgraphicslayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything working smoothly and polygon graphic is added into the graphiclayer.&lt;/P&gt;&lt;P&gt;Code snippet.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;await QueuedTask.Run(() =&amp;gt;
            {
                polygonSymbol = SymbolFactory.Instance.ConstructPolygonSymbol();
                polygonGraphic.Polygon = (Polygon)geometry;
                polygonGraphic.Symbol = polygonSymbol.MakeSymbolReference();

                this._PolygonGraphicsLayer.AddElement(polygonGraphic);
            });
//stop the user to keep on drawing another, deactivate the current maptool by activating other tool
 await FrameworkApplication.SetCurrentToolAsync(DAML.Tool.esri_mapping_exploreTool);

            await FrameworkApplication.SetCurrentToolAsync(DAML.Tool.esri_layouts_selectByRectangleTool);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I noticed that if I move or edit the latest added graphic, it always create new graphic in the graphic layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seem to be a bug in sdk or Pro?&lt;/P&gt;&lt;P&gt;Any idea&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 02:02:05 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-11-16T02:02:05Z</dc:date>
    <item>
      <title>Graphic Layer - Pro making clone on just added graphic</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphic-layer-pro-making-clone-on-just-added/m-p/1001626#M5739</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;In ArcGIS pro 2.6, in my maptool,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add the graphicslayer (if not in the map), and add the element after polygon is drawn.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers#targetgraphicslayer" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-GraphicsLayers#targetgraphicslayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything working smoothly and polygon graphic is added into the graphiclayer.&lt;/P&gt;&lt;P&gt;Code snippet.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;await QueuedTask.Run(() =&amp;gt;
            {
                polygonSymbol = SymbolFactory.Instance.ConstructPolygonSymbol();
                polygonGraphic.Polygon = (Polygon)geometry;
                polygonGraphic.Symbol = polygonSymbol.MakeSymbolReference();

                this._PolygonGraphicsLayer.AddElement(polygonGraphic);
            });
//stop the user to keep on drawing another, deactivate the current maptool by activating other tool
 await FrameworkApplication.SetCurrentToolAsync(DAML.Tool.esri_mapping_exploreTool);

            await FrameworkApplication.SetCurrentToolAsync(DAML.Tool.esri_layouts_selectByRectangleTool);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I noticed that if I move or edit the latest added graphic, it always create new graphic in the graphic layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seem to be a bug in sdk or Pro?&lt;/P&gt;&lt;P&gt;Any idea&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 02:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/graphic-layer-pro-making-clone-on-just-added/m-p/1001626#M5739</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-16T02:02:05Z</dc:date>
    </item>
  </channel>
</rss>

