ImI'm trying to calculate geometry in pythonPython for a script tool for arcmapArcMap.
For the script iI want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but itsit's not working and itsit's giving me all 0'szeros in my output field. thisThis is what I have:
# Set Calculate geometry variables
calculate_table = clip_output
geometry_prop = "AREA"
expression = "HECTARES"
# Run calculate geometry
arcpy.AddGeometryAttributes_management(calculate_table, geometry_prop, "", expression, "")
whatsWhat's wrong? should iShould I use a different tool?