in ArcMap, we could get a map point'x X y on the below:
If pFCTraff.FindField("POINT_X") >= 0 Then
pNewF.Value(pFCTraff.FindField("POINT_X")) = pPoint.X
pNewF.Value(pFCTraff.FindField("POINT_Y")) = pPoint.Y
End If
In ArcGIS Pro Addin, OnSketchCompleteAsync(Geometry geometry) here geometry is a point. How do I get this point's x y in C#?
Solved! Go to Solution.
Sounds like you want to be accessing MapPoint?
Sounds like you want to be accessing MapPoint?
Thank you so much !! MapPoint solved it.
MapPoint myPoint = sketchedPoint as MapPoint;
POINT_X=myPoint.X;
POINT_Y=myPoint.Y;