<?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 Snap a point that was added by code in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snap-a-point-that-was-added-by-code/m-p/1146352#M7818</link>
    <description>&lt;P&gt;I am using my own tool to add points by user.&lt;/P&gt;&lt;P&gt;The code takes the point clicked by the user. Do some stuff and add it to the feature class.&lt;/P&gt;&lt;P&gt;I would like to snap the point just like it was added with the create feature standard tool.&lt;/P&gt;&lt;P&gt;Is there any way to take a geometry in the code and snap it by the current snap env?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 06:05:34 GMT</pubDate>
    <dc:creator>mody_buchbinder</dc:creator>
    <dc:date>2022-02-22T06:05:34Z</dc:date>
    <item>
      <title>Snap a point that was added by code</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snap-a-point-that-was-added-by-code/m-p/1146352#M7818</link>
      <description>&lt;P&gt;I am using my own tool to add points by user.&lt;/P&gt;&lt;P&gt;The code takes the point clicked by the user. Do some stuff and add it to the feature class.&lt;/P&gt;&lt;P&gt;I would like to snap the point just like it was added with the create feature standard tool.&lt;/P&gt;&lt;P&gt;Is there any way to take a geometry in the code and snap it by the current snap env?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snap-a-point-that-was-added-by-code/m-p/1146352#M7818</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2022-02-22T06:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Snap a point that was added by code</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snap-a-point-that-was-added-by-code/m-p/1146358#M7821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the constructor of your tool you need to add line :&lt;/P&gt;&lt;LI-CODE lang="c"&gt;UseSnapping = true;&lt;/LI-CODE&gt;&lt;P&gt;Then in the "OnSketchCompleteAsync" create feature using EditOperation Create method:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// Create an edit operation
var createOperation = new EditOperation();
createOperation.Name = string.Format("Create {0}", layer.Name);
createOperation.SelectNewFeatures = true;
// Queue feature creation
createOperation.Create(layer, geometry);
return createOperation.Execute();&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snap-a-point-that-was-added-by-code/m-p/1146358#M7821</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-02-22T06:39:09Z</dc:date>
    </item>
  </channel>
</rss>

