Message 1 of 2
Editor.Command and Pause token issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to invoke POLYLINE command with overriden angle synchronously.
[CommandMethod("TestPoly")] public static void Test() { Application.DocumentManager.MdiActiveDocument.Editor.Command("_.PLINE", Editor.PauseToken, "<100", Editor.PauseToken); }
This works perfectly fine, however if I cancel POLYLINE command with ESC, next time when I try to use the same "TestPoly" command it throws "eInvalidInput" exception.
Is this an API issue or am I doing something wrong?