Select to view content in your preferred language

Error with area calculation with Command Line Python

959
2
03-14-2014 03:29 AM
marcolack
New Contributor
Dear experts,

I try to calculate an area field via a command line python expression - but nothing works, I can do PartCount etc. but Shape.area and Shape.length yield the following error:

CalculateField_management itsct1 ID "!SHAPE.area!" PYTHON_9.3 #
Executing: CalculateField itsct1 ID !SHAPE.area! PYTHON_9.3 # itsct1
Start Time: Fri Mar 14 12:18:59 2014
ERROR 000539: Error running expression: 0,028764146587863 <type 'exceptions.SyntaxError'>: invalid token (<string>, line 1)
Failed to execute (CalculateField).
End Time: Fri Mar 14 12:18:59 2014 (Elapsed Time: 0,00 seconds)


any help is much appreciated!
Thanks,
Annett
Tags (2)
0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Annett,

Can you post the expression you are attempting to run?
0 Kudos
marcolack
New Contributor
It is this one:

CalculateField_management c:\tmp\test.shp area "!SHAPE.area!" PYTHON_9.3 #
0 Kudos