Trigger Illustrator menu item "Undo" from plugin.
Hello Together,
the task I want to do sounds fairly simple:
I want Illustrator to do a global "Undo" operation, triggered by my plugin!
I want the same result as if a user clicks in the Illustrator menu on "File-> Revert" (in german it is "Bearbeiten-> Rückgängig).
Unfortunately, I could not find access to the native Illustrator menu items so far.
I tried using the function sAIUndo->UndoChanges in my plugin, but it does not work at all.
In addition to that, the function sAIUndo->CountTransactions always returns "0" and the function sAIAppContext->DoesAppContextExist always returns "false".
Nevertheless, if I click in the Illustrator menu on "File-> Revert", everything works fine and the last changes are reverted.
Which suite and function do I need to use in order to get the same result?
Thank you very much in advance,
Fabian Taubitz