JPHILLI2_TXDOT

How can you remove a single item from the Redo stack in the ArcGIS Pro SDK?

Discussion created by JPHILLI2_TXDOT on Jun 26, 2019
Latest reply on Jun 26, 2019 by nchedzey-esristaff

This seems like it should be pretty simple, but I've been troubleshooting and can't seem to get it to work!

 

//I create an Edit operation

var splitFeatures = new EditOperation() { };


//Some Extra code goes here (https://github.com/TxDOT/Pro-LRS-Tools/blob/master/LRSTools/IdentifyRouteLocations.cs for full code) that splits and gets measures

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


//I Undo the Split

splitFeatures.UndoAsync();

 

//After I undo the edit operation, I want to remove the ability for the user to redo it.  How can I remove the single edit operation from the redostack?

var operationMgr = MapView.Active.Map.OperationManager;

 

//operationMgr.FindRedoOperations()

//RemoveRedoOperation();

 

I found this RemoveRedoOperation method, but I can't seem to find a good example of it in use.  Please help!

Thanks

JP

Outcomes