lupgmbh

Error with area calculation with Command Line Python

Discussion created by lupgmbh on Mar 14, 2014
Latest reply on Mar 14, 2014 by lupgmbh
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

Outcomes