Message 1 of 2
Application idle event handler used to run undo command results in an eInvalidInput error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I try to "undo" the previous command be running an editor command "undo" in an application idle event. I get an eInvalidInput error.
What is the reason for this error and is there a way to avoid it?
I attached the handler inside of a database_modified eventhandler where I check if I want to use the "undo".
My code:
private static void AcApplication_Idle(object sender, EventArgs e)
{
AcApplication.DocumentManager.MdiActiveDocument.Editor.Command("_.undo", "1");
}
Thanks for helping!
Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw