I'm using VB.NET and would like to find out if there's a way to record the coordinates of an osnap glyph when it lights up.
No takers? You could wrap your point acquisition in a PointMonitor or PointFilter event handler and
- check the InputPointContext.History for the PointHistoryBits.ObjectSnapped bit, and
- check the InputPointContext.ObjectSnapMask for the ObjectSnapMasks.End bit, and
- if both are set, InputPointContext.ComputedPoint.contains your point.
I'm drawing a jig line and would like my jigline/dragline to jump from my crosshairs to the ENDpoint of a particular line when the endpoint glyph lights up. If I can get those coordinates, I can get this to work.
Here I'm not sure if I can follow you. You shouldn't mess with the coordinates of the input device, lest the user experiences unexpected behaviour. The usual way would be to leave the crosshairs alone and return the snap point only if it is selected.
I feel like ObjectSnapInfo may have something to do with it, but I keep getting Fatal Errors whenever I try anything with it.
I think that's for custom osnap. But it may work for you too. There's an example over at
Kean's.