Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Error with area calculation with Command Line Python

$
0
0
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

Viewing all articles
Browse latest Browse all 2485

Trending Articles