markholder_ats

Python Addin and Undo/Redo

Discussion created by markholder_ats on Jun 23, 2012
Latest reply on Dec 20, 2016 by tlaxson
There seems to be no way for a Python addin to access the startOperation and stopOperation functions provided by the Editor class. A stand-alone script can use them, but I'd like to be able to click a button provided by an addin and update some data in the map and have the edit appear in the undo/redo stack as was possible in VBA.

Am I missing something? I can do the editing part, but the edits do not appear in the undo/redo stack automatically, and I can't get the Editor class to work.

The API does not include a label for the stopOperation() method as VBA had, so it looks as if the Editor class was not designed to work with Python addins.

Outcomes