What looked like a simple task has kept me busy for a while now. I would like to snap the endpoint of a polyline feature to a known point of which I know the coordinates.
My first try was the following (within an edit operation):
polyline = feature.ShapeCopy as IPolyline; polyline.ToPoint.PutCoords(_connectionPoint.X, _connectionPoint.Y); feature.Shape = polyline; feature.Store();
the new coordinates however would never be saved at the feature.
I also looked at this example:
but I am a bit confused about whether I really need a HitTest in my case.