Author Topic: Mousemove-Hover question  (Read 1950 times)

0 Members and 1 Guest are viewing this topic.

Matersammichman

  • Guest
Mousemove-Hover question
« on: May 22, 2007, 09:40:30 AM »
Can you use a Mousemove event (or something similar) when hovering over a dwg to detect a certain type of object in Cad (ie: circle)? Examples?

Guest

  • Guest
Re: Mousemove-Hover question
« Reply #1 on: May 22, 2007, 10:26:49 AM »
Can you use the AECINSPECT command instead?

Matersammichman

  • Guest
Re: Mousemove-Hover question
« Reply #2 on: May 22, 2007, 10:45:44 AM »
Not unless you know a way I can pass the data. Basically I want to create a "typeof" sniffer.
working at trying to create a "smart" osnap function...
When I hover my cursor over a circle, line, etc., I want vba to automatically set my osnaps byobject.
ie: If the typeof object is a circle, then set osmode = 276 (quadrant, center, tangent),
or if it's a line, then set osmode = 35 (end, midpoint, intersection),
etc.....
Ideas?

Guest

  • Guest
Re: Mousemove-Hover question
« Reply #3 on: May 22, 2007, 11:03:07 AM »
What if you select an object instead?  I'm not sure you can do what you're asking with VBA.

Matersammichman

  • Guest
Re: Mousemove-Hover question
« Reply #4 on: May 22, 2007, 11:07:55 AM »
Yeah...I'm not sure either.
Sure, I can select the object and use a typeof statement.
That's kind of halfway doing it, but its better than nothing I guess.
Thanks for the help Matt.