How to best implement vertex snapping

538
0
10-17-2016 10:43 AM
FredyDi_Sano
New Contributor II

I'm building a specialised app that allows for polygons to be drawn and part of the requirements state that when drawing a new polygon, the user should be allowed to snap points to existing polygonal regions that are with a certain range. 

I found this posts which helps solve how to find a point to snap to:

.NET SDK snap function for feature geometry editing 

But I've hit a glass wall when trying to modify points as they are being created. I'm currently using a Progress delegate to

catch each new vertex that has been drawn but I can't seem to do anything them. MapPoint.MoveTo does NOTHING and I can't touch the X,Y members of MapPoint either.

I also tried over-riding the editor as per this post:
https://community.esri.com/message/559163 

But I run into the same issue with MapPoints there as well.

It's like you guys don't want us to touch the geometry at all but I need to be able to solve this problem. The only soloution I see at this point is either setting the mouse cursor manually through a low-level call or writing my own editor.

Any ideas would be greatly appreciated!

Cheers

0 Replies