<?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: How To Move a Point in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1658874#M13205</link>
    <description>&lt;P&gt;My workflow to move a feature (point, line, polygon) is:&lt;/P&gt;&lt;P&gt;1. When mouse down on a feature, hide the selected feature (set layer's query) and store mouse down location&lt;/P&gt;&lt;P&gt;2. Add overlay (MapView.AddOverlay) using geometry and symbol from this feature&lt;/P&gt;&lt;P&gt;3. In MouseMove event of MapTool, detect when mouse location hover overlay, use GeometryEngine.NearestPoint or GeometryEngine.Distance. If mouse down and move, calculate move distance from mouse down location to current mouse location&lt;/P&gt;&lt;P&gt;4. Offset overlay geometry with this distance&lt;/P&gt;&lt;P&gt;5. Use MapView.UpdateOverlay to update overlay with new calculated geometry.&lt;/P&gt;&lt;P&gt;6. When mouse up, update feature's geometry with new geometry. Don't update feature's geometry while mouse moving, it's too slow.&lt;/P&gt;&lt;P&gt;7. When unselect (click to other location,...), remove overlay and show the feature.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Oct 2025 08:24:07 GMT</pubDate>
    <dc:creator>MinhHoangf</dc:creator>
    <dc:date>2025-10-18T08:24:07Z</dc:date>
    <item>
      <title>How To Move a Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1658726#M13204</link>
      <description>&lt;P&gt;I'm thinking this should be easy, but I can't find any information on how to do this programmatically. I am porting an ArcMap Extension that has a move function for a point feature. We use the&amp;nbsp;ISnapEnvironment and other Snapping classes to do this. I can't, for the life of me find any examples or how to do this in ArcGIS Pro SDK. I know how to move a point, but I need the user to be able to drag to the new location.&lt;/P&gt;&lt;P&gt;I love how the built in move edit works in ArcGIS Pro. If I can figure out a way to just capture the move do some application specific processing, that would be good too.&lt;/P&gt;&lt;P&gt;Any help would be most appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 14:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1658726#M13204</guid>
      <dc:creator>TomLewis</dc:creator>
      <dc:date>2025-10-17T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How To Move a Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1658874#M13205</link>
      <description>&lt;P&gt;My workflow to move a feature (point, line, polygon) is:&lt;/P&gt;&lt;P&gt;1. When mouse down on a feature, hide the selected feature (set layer's query) and store mouse down location&lt;/P&gt;&lt;P&gt;2. Add overlay (MapView.AddOverlay) using geometry and symbol from this feature&lt;/P&gt;&lt;P&gt;3. In MouseMove event of MapTool, detect when mouse location hover overlay, use GeometryEngine.NearestPoint or GeometryEngine.Distance. If mouse down and move, calculate move distance from mouse down location to current mouse location&lt;/P&gt;&lt;P&gt;4. Offset overlay geometry with this distance&lt;/P&gt;&lt;P&gt;5. Use MapView.UpdateOverlay to update overlay with new calculated geometry.&lt;/P&gt;&lt;P&gt;6. When mouse up, update feature's geometry with new geometry. Don't update feature's geometry while mouse moving, it's too slow.&lt;/P&gt;&lt;P&gt;7. When unselect (click to other location,...), remove overlay and show the feature.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Oct 2025 08:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1658874#M13205</guid>
      <dc:creator>MinhHoangf</dc:creator>
      <dc:date>2025-10-18T08:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How To Move a Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1659239#M13210</link>
      <description>&lt;P&gt;To update the geometry of the feature, see the code snippet at&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#modifying-a-feature" target="_blank"&gt;ProSnippets Geodatabase · Esri/arcgis-pro-sdk Wiki&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 01:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1659239#M13210</guid>
      <dc:creator>SelimDissem</dc:creator>
      <dc:date>2025-10-21T01:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How To Move a Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1662002#M13232</link>
      <description>&lt;P&gt;Not sure if this will work in your use case, but you can call the built-in ArcGIS Pro 'Move Vertices' function programmatically.&amp;nbsp; Just make sure that all edit conditions are met (i.e. the feature you want to move has been selected).&amp;nbsp; This code snippet worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
{
  try
  {
    QueuedTask.Run(() =&amp;gt;
    {
      // Ensure that there is only a single selected feature
      var mapView = MapView.Active;
      if (mapView == null)
      {
        MessageBox.Show("No active map view", "MoveSelectedFeature");
        return;
      }
      var selectedFeatures = mapView.Map.GetSelection();
      if (selectedFeatures.Count != 1)
      {
        MessageBox.Show("Please select a single feature to move.", "MoveSelectedFeature");
        return;
      }
      // Use FrameworkApplication.GetPlugInWrapper to find the Move tool and execute the tool
      if (FrameworkApplication.GetPlugInWrapper("esri_editing_EditVerticesMove") is ICommand moveToolCmd)
      {
        if (moveToolCmd.CanExecute(null))
          moveToolCmd.Execute(null);
      }
      else
      {
        MessageBox.Show("Could not find the Move tool command.", "MoveSelectedFeature");
        return;
      }
    });
  }
  catch (Exception ex)
  {
    MessageBox.Show($"MoveSelectedFeature failed. {ex.Message}", "MoveSelectedFeature");
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Oct 2025 17:48:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-move-a-point/m-p/1662002#M13232</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2025-10-29T17:48:02Z</dc:date>
    </item>
  </channel>
</rss>

