TheSwamp

Code Red => VB(A) => Topic started by: Matersammichman on May 22, 2007, 09:40:30 AM

Title: Mousemove-Hover question
Post by: Matersammichman 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?
Title: Re: Mousemove-Hover question
Post by: Guest on May 22, 2007, 10:26:49 AM
Can you use the AECINSPECT command instead?
Title: Re: Mousemove-Hover question
Post by: Matersammichman 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?
Title: Re: Mousemove-Hover question
Post by: Guest 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.
Title: Re: Mousemove-Hover question
Post by: Matersammichman 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.