Noticed today that if the user switches active drawing while one of my commands is active, I get an eLock violation.
Testing AutoCAD's built in commands, they don't handle the switch consistently. The polyline command just ends at the last point, and the insert command disables switching active drawings.
What's the best way to handle this?
I like the idea of locking the active drawing to current drawing, but not sure the best way to implement that via the .NET API.