This came up during an internal discussion and I thought it worth sharing here. It’s easy enough to use a point monitor in AutoCAD to determine the current cursor location, but how do we make sure it’s in the current User Coordinate System (UCS) and that we adjust for object snapping (osnap)? To keep the code simple I’ve been a little lazy: I’m just adding an event handler as a lambda, without worrying about removing it. Also, to avoid a crash when you switch to the New Tab page or a new document and back, the code swallows an... Read more →