Select to view content in your preferred language

How do you remove a single redo operation from the undo/redo stack in the ArcGIS Pro SDK? (FindRedoOperations,RemoveRedoOperation)

390
0
04-12-2019 08:33 AM
JohnPhillipsGeo
New Contributor III

Hello, I am new to the .NET SDK for ArcGIS Pro and haven't found any documentation on this particular subject.

I have a workflow that requires me to remove a single Redo operation from the undo/redo stack.  I have found the FindRedoOperations() and RemoveRedoOperation() in the SDK Documentation however I can't seem to figure out how to use them.  Can someone please provide an example of how to use these two functions?

//Create Edit operation
var splitFeatures = new EditOperation() { };

//perform a split and execute

splitFeatures.Split(lyr, oid, geometry);
splitFeatures.Execute();

//Here I do some analysis on the split segment then I undo the split

<--Some extraneous code here-->

//Undo the split
splitFeatures.UndoAsync();

//I would like to remove the option for the user to redo the undo on the split that I've implemented here.

//operationMgr.FindRedoOperations()
//RemoveRedoOperation();


0 Kudos
0 Replies