Hi!
Is there any method to capture the undo event? or any other for triggering a method on undo?
Why? the story is like this:
i have created an Addin with a button, this button is changeable ie. if preseed { change the image, text of the button} if pressed again{revert the old image,Text back}
however, when you trigger and make the idlying issue Activated and you Hit (Ctrl+Z) for undo the button is not reverted. ofcourse it will not because there is nothing call it to do so.
so is there a way for that
Solved! Go to Solution.
Solved by Moustafa_K. Go to Solution.
Solved by arnostlobel. Go to Solution.
Hello mostafa90:
A simple answer (without referring to your concrete implementation) is yes – there is an event for Undo and Redo operations. It is the same event like the one for document changes – DocumentChanged. The “Operation” property on the event’s argument will tell you whether the change was caused by an undo or something else.
Thank you
Arnošt Löbel
Autodesk, Revit R&D