AnsweredAssumed Answered

Adding XY Fields to an Attribute Table

Question asked by kostas_ptr88 on Jan 16, 2015
Latest reply on Jan 16, 2015 by xander_bakker

Hello i have a point.shapefile with fields: FID:0123..., Shape:Points, CONTOUR:400, 401 etc, X, Y. I want to add x,y coordinates to attribute table from a mosaic, how can i do that?


I tried from field calculator the following script for X and Y fields at 'show codeblock':


Dim dblX As Double

Dim pPoint As IPoint

Set pPoint = [Shape]

dblX = pPoint.X





but i have always an error 999999. I am using ArcGis 10.2.2. any suggestion?