bjameson

Field calculator problem

Discussion created by bjameson on Oct 11, 2011
Latest reply on Oct 20, 2011 by bjameson
I'm trying to do a very simple action using the field calculator. I have a shp file that I want to calculate the start and finish xy coordinates. I have added the new fields and gone into the field calculator throught toolbox and entered:

!shape.firstpoint.x! for the begin_x field but I get the following error:

Executing (CalculateField_28): CalculateField ROUTEM_1_Intersect begin_x !shape.firstpoint.x! PYTHON # ROUTEM_1_Intersect
Start Time: Tue Oct 11 17:08:08 2011
Invalid property firstpoint.x. Valid properties: type, extent, centroid, label, firstpoint, lastpoint, area, length, ismultipart, partcount
Failed to execute (CalculateField_28).
End Time: Tue Oct 11 17:08:08 2011 (Elapsed Time: 0.00 seconds)

Any ideas on what I'm doing wrong?

Thanks

Outcomes