I am trying to calculate the x and y coordinates using the Calculate Field tool in ArcToolbox.
The following code works in ArcGIS 9.3.1 but not ArcGIS 10. Any idea as to why it doesn't work? All input data variables are the same.
arcpy.CalculateField_management(BT_BNG, "Eastings", "!shape.firstpoint.x!", "PYTHON", "")
After running the code I receive the following message:
Invalid property firstpoint.x. Valid properties: labelpoint, type, extent, truecentroid, firstpoint, lastpoint, ismultipart, hullrectangle, area, length, partcount, pointcount, centroid
Failed to execute (Calculate Field).