<?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 How do you remove a single redo operation from the undo/redo stack in the ArcGIS Pro SDK? (FindRedoOperations,RemoveRedoOperation) in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-do-you-remove-a-single-redo-operation-from-the/m-p/659850#M4491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am new to the .NET SDK for ArcGIS Pro and haven't found any documentation on this particular subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a workflow that requires me to remove a single Redo operation from the undo/redo stack.&amp;nbsp; I have found the&amp;nbsp;&lt;SPAN&gt;FindRedoOperations() and&amp;nbsp;RemoveRedoOperation() in the SDK Documentation however I can't seem to figure out how to use them.&amp;nbsp; Can someone please provide an example of how to use these two functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create Edit operation &lt;BR /&gt; var splitFeatures = new EditOperation() { };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//perform a split and execute&lt;/P&gt;&lt;P&gt;splitFeatures.Split(lyr, oid, geometry);&lt;BR /&gt; splitFeatures.Execute();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Here I do some analysis on the split segment then I undo the split&lt;/P&gt;&lt;P&gt;&amp;lt;--Some extraneous code here--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Undo the split&lt;BR /&gt; splitFeatures.UndoAsync();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//I would like to remove the option for the user to redo the undo on the split that I've implemented here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//operationMgr.FindRedoOperations()&lt;BR /&gt; //RemoveRedoOperation();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2019 15:33:33 GMT</pubDate>
    <dc:creator>JohnPhillipsGeo</dc:creator>
    <dc:date>2019-04-12T15:33:33Z</dc:date>
    <item>
      <title>How do you remove a single redo operation from the undo/redo stack in the ArcGIS Pro SDK? (FindRedoOperations,RemoveRedoOperation)</title>
      <link>https://community.esri.com/t5/developers-questions/how-do-you-remove-a-single-redo-operation-from-the/m-p/659850#M4491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am new to the .NET SDK for ArcGIS Pro and haven't found any documentation on this particular subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a workflow that requires me to remove a single Redo operation from the undo/redo stack.&amp;nbsp; I have found the&amp;nbsp;&lt;SPAN&gt;FindRedoOperations() and&amp;nbsp;RemoveRedoOperation() in the SDK Documentation however I can't seem to figure out how to use them.&amp;nbsp; Can someone please provide an example of how to use these two functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create Edit operation &lt;BR /&gt; var splitFeatures = new EditOperation() { };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//perform a split and execute&lt;/P&gt;&lt;P&gt;splitFeatures.Split(lyr, oid, geometry);&lt;BR /&gt; splitFeatures.Execute();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Here I do some analysis on the split segment then I undo the split&lt;/P&gt;&lt;P&gt;&amp;lt;--Some extraneous code here--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Undo the split&lt;BR /&gt; splitFeatures.UndoAsync();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//I would like to remove the option for the user to redo the undo on the split that I've implemented here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//operationMgr.FindRedoOperations()&lt;BR /&gt; //RemoveRedoOperation();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-do-you-remove-a-single-redo-operation-from-the/m-p/659850#M4491</guid>
      <dc:creator>JohnPhillipsGeo</dc:creator>
      <dc:date>2019-04-12T15:33:33Z</dc:date>
    </item>
  </channel>
</rss>

