<?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: Can I call Project.Current.UndoEditAsync in the EditCompleted Event? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1265574#M9519</link>
    <description>&lt;P&gt;Great. Thank you for the clarification and the advice.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 17:25:54 GMT</pubDate>
    <dc:creator>DrewDowling</dc:creator>
    <dc:date>2023-03-08T17:25:54Z</dc:date>
    <item>
      <title>Can I call Project.Current.UndoEditAsync in the EditCompleted Event?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1264747#M9511</link>
      <description>&lt;P&gt;I have code that checks certain things in the EditCompleted event in a Pro extension. If certain conditions aren't met for certain edits I'd like to cancel the edit operation. Is it appropriate to call&lt;/P&gt;&lt;P&gt;Project.Current.UndoEditAsync();&lt;/P&gt;&lt;P&gt;inside the EditCompleted event?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm concerned that the edit that is just completing hasn't been added to the edit stack yet and I might actually undo a previous edit. Testing don't indicate this is a problem but I want to make sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 23:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1264747#M9511</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2023-03-06T23:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call Project.Current.UndoEditAsync in the EditCompleted Event?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1265570#M9518</link>
      <description>&lt;P&gt;this might help :&amp;nbsp;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#editcompletedevent" target="_self"&gt;ProConcepts-Editing#editcompletedevent&lt;/A&gt;&amp;nbsp;. The edit has completed so u wont "skip" it if that is what u r wondering....&lt;/P&gt;&lt;P&gt;That said, if u do execute&amp;nbsp;&lt;SPAN&gt;Project.Current.UndoEditAsync() within the event I would expect it to be re-entrant so be prepared to deal with that (and not end up in a continuous loop)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Refer to&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic16008.html" target="_self"&gt;EditCompletedType&lt;/A&gt;&amp;nbsp;on the event args&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 17:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1265570#M9518</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-03-08T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call Project.Current.UndoEditAsync in the EditCompleted Event?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1265574#M9519</link>
      <description>&lt;P&gt;Great. Thank you for the clarification and the advice.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 17:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-call-project-current-undoeditasync-in-the/m-p/1265574#M9519</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2023-03-08T17:25:54Z</dc:date>
    </item>
  </channel>
</rss>

