Check if focus is on or off DWG
![](/skins/images/E8CF5EB8DD5884B6313517A53486E8AC/responsive_peak/images/icon_anonymous_message.png)
Not applicable
02-20-2019
05:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, my name is Victor, I've been working developing on AutoCAD for a few months now.
Right now I'm working on a plugin and I'm facing the challenge to know if DWG has the focus or at least if mouse pointer is over it. I know how to set to focus to the DWG but don't know how to check it. It has come to my mind to use the GetPoints() method so it will return if the focus is not on the DWG but it doesn't seem very elegant and would not be enough because if the focus is on the DWG it will not return the control until the user selects a point which we don't even need.
Could you provide any hint on what is the best way to accomplish this?
Thanks in advance.
Victor