I'm trying to calculate geometry in Python for a script tool for ArcMap.
For the script I want to calculate area in hectares. I am trying to use the add geometry attribute (data management) tool, but it's not working and it's giving me all zeros in my output field. This 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, "")
What's wrong? Should I use a different tool?