<?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 Automatically save edits does not recognize creating a feature programmatically in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1230907#M9060</link>
    <description>&lt;P&gt;In the Editing Options of a project, I choose to automatically save edits after 1 minute.&lt;/P&gt;&lt;P&gt;If I create a new feature manually, it is automatically saved after 1 minute. However, if I create the feature programmatically, it is not automatically saved after 1 minute.&lt;/P&gt;&lt;P&gt;To create the feature programmatically, I use a Construction Tool and the following code inside the method OnSketchCompleteAsync():&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var createOperation = new EditOperation();
createOperation.Create(featLayer, attributes);

bool succeeded = await QueuedTask.Run(() =&amp;gt;
{
    return createOperation.Execute();                  
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is there a way that the creation of my new feature is recognized by automatically save edits?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 15:09:21 GMT</pubDate>
    <dc:creator>BarbaraSchneider2</dc:creator>
    <dc:date>2022-11-11T15:09:21Z</dc:date>
    <item>
      <title>Automatically save edits does not recognize creating a feature programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1230907#M9060</link>
      <description>&lt;P&gt;In the Editing Options of a project, I choose to automatically save edits after 1 minute.&lt;/P&gt;&lt;P&gt;If I create a new feature manually, it is automatically saved after 1 minute. However, if I create the feature programmatically, it is not automatically saved after 1 minute.&lt;/P&gt;&lt;P&gt;To create the feature programmatically, I use a Construction Tool and the following code inside the method OnSketchCompleteAsync():&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var createOperation = new EditOperation();
createOperation.Create(featLayer, attributes);

bool succeeded = await QueuedTask.Run(() =&amp;gt;
{
    return createOperation.Execute();                  
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is there a way that the creation of my new feature is recognized by automatically save edits?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 15:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1230907#M9060</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2022-11-11T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically save edits does not recognize creating a feature programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1232179#M9086</link>
      <description>&lt;P&gt;This is a bug, I guess. I implemented a workaround to automatically save my edits after 1 minute using System.Windows.Threading.DispatcherTimer&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1232179#M9086</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2022-11-16T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically save edits does not recognize creating a feature programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1232501#M9090</link>
      <description>&lt;P&gt;What version of Pro are you using?&amp;nbsp; I was not able to duplicate this issue using ArcGIS Pro version 3.0.&lt;BR /&gt;I used&amp;nbsp;createOperation.ExecuteAsync(); instead of the synchronous Execute method.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 22:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1232501#M9090</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2022-11-16T22:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically save edits does not recognize creating a feature programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1244696#M9218</link>
      <description>&lt;P&gt;We are using ArcGIS Pro 2.9.5. I tried it with createOperation.ExecuteAsync() and it worked! Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 15:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/automatically-save-edits-does-not-recognize/m-p/1244696#M9218</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2022-12-31T15:42:46Z</dc:date>
    </item>
  </channel>
</rss>

