calculate length with the filed calculator in model builder arcgis 10

5906
1
05-08-2011 11:37 AM
Pía_ZenaidaVirginia
New Contributor II
Hi, I try to use the calculator field to update a field that store lengths in a shapefile; I do this because I try to put the task in model builder. I use python under suggestion of what I read in the help and the syntax I read for this task is as follow:

!shape.length@kilometers!

I fill the text box of the field calculator with this line of code, but it`s return a syntax error.

Someone knows what it´s wrong ? I work under Windows XP, ArcGis 10, ArcEditor evaluation version.

Thanks

Virginia
Tags (2)
0 Kudos
1 Reply
Pía_ZenaidaVirginia
New Contributor II
Hi, I solved the problem.

For others:

the syntax !shape.length@kilometers! is correct, but in the dialog box CALCULATE FIELD from Model Builder, you must change "Expression Type" from python 9.3 to "python" if you work with ArcGis 10.

Virginia