Cursor position
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I made a few commands that prompt the user for clicking where something should be inserted in the current space. I use the PointMonitorEventHandler handler and it words perfectly fine. But the object that must be inserted starts following cursor position only after I started moving said cursor. In other words, the PointMonitor event is fired only after the cursor started moving. So, in order for the inserted object to be placed at cursor position as soon as I prompt the user, I need to know the cursor position before I insert it. I found a few topics online about this (https://forums.autodesk.com/t5/objectarx/get-mouse-position/td-p/4682337, https://spiderinnet1.typepad.com/blog/2015/12/get-cursor-position-in-current-ucs-using-autocad-net-a... https://adndevblog.typepad.com/autocad/2013/08/get-mouse-cursor-position-without-event.html), but I'm having trouble understanding or implementing them. Any ideas? 🙂