2012 CommandFlags.Session problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all. I'm experiencing a problem with a "session context" command in AutoCAD 2012. Can someone please try this and let me know if you have the same issue.
Here's what I've got...
[CommandMethod("MYCOMMAND", CommandFlags.Session)]
public static void MyCommand()
{
Editor ed = Autodesk.AutoCAD.Application.DocumentManager.MdiActiveDocument.Editor;
ed.WriteLine("\nMYCOMMAND completed.");
}
Pretty simple and it appears to work, BUT something strange occurs when you have another drawing with an active command running (e.g. a "CIRCLE" command is active in a "non-active" drawing waiting for user input). When you try to run the above "MYCOMMAND" in the "active drawing", well AutoCAD 2012 just seems to hang there.
Has anyone noticed this hang with AutoCAD 2012? Or am I doing something wrong here? I'm using vanilla AutoCAD 2012.
Cheers,
Art