It sounds like you are wanting to monitor AutoCAD for a specific condition to happen ... I'm not sure you can do that with .NET
I'd say he wants to monitor AutoCAD for a specific condition to happen.
Using .NET api how can we detect if user has pressed CTRL+Z (undo) in a command. For example while creating a polyline etc. Is their any event available for this.
The conditions as I read them are that we're in the PLINE command, and a specific key combo is pressed. The CommandWillStart event allows for the former, and a MessageFilter should do the latter. Besides, we need handlers for CommandCancelled, CommandEnded, CommandFailed, DocumentCreated and DocumentToBeDestroyed to make it work.
Of course it's not really a good idea anyway to change the semantics of an existing command.