I'm very new to Python and am working in model builder right now. I created a new field (Shp_Acs) and I want that field to calculate the area of the polygon in acres. I tried !shape.area@ACRES! and it doesn't bring back the correct value.
I was using VB and the expression was [SHAPE_STAr] /43560. SHAPE_STAr is a field in my table that has the area of the polygon in sq.ft.
Solved! Go to Solution.
What is the data type of the field you are attempting to calculate into?
Also, is your feature class projected? From the field calculator help, regarding area tokens:
Using areal units on geographic data will yield questionable results as decimal degrees are not consistent across the globe.
I used !shape.area@acres! and it returned the proper acreage for my polygon features.
What is the data type of the field you are attempting to calculate into?
Also, is your feature class projected? From the field calculator help, regarding area tokens:
Using areal units on geographic data will yield questionable results as decimal degrees are not consistent across the globe.
It's a double field.
I tried what you wrote above and it worked! Thanks!