Skip to main content
8 events
when toggle format what by license comment
Nov 6, 2013 at 17:51 comment added ustroetz You can just check if the field already exists. If it does, only the calculation is done, if it doesn't the field will be added and the calculation will be done. I rewrote @amarinel's script a little bit: gist.github.com/ustroetz/7340870
Nov 6, 2013 at 1:14 comment added bhoobler amarinel's script runs beautifully. User must make sure you do not copy/paste however as that introduces error into the script (ellipses). I have not tried to make this an add-in tool but I might. The only other thing left undone would be to run a script that overwrites the existing column for updates. The workaround is to delete the "acres" column and start over. I'm just not dealing with intuitive GIS users that would understand that. Thanks again for helping me solve the acre code!
Nov 5, 2013 at 19:24 comment added bhoobler let us continue this discussion in chat
Nov 5, 2013 at 19:20 comment added Adam Can you post the code from your Acres.py file?
Nov 5, 2013 at 18:02 comment added Adam If this works (which it should), the problem may be in the setup of your script tool and parameter.
Nov 5, 2013 at 17:51 comment added Adam Try running the script through the Python window in either ArcCatalog or ArcMap. The only thing that needs to be changed is the location of your shapefile or FC at line 4: in_featureclass = r'C:\gisworkspace\PythonTesting\Tracts.shp'
Oct 30, 2013 at 20:42 comment added Adam You could also modify the code work with the Python Add-In Wizard by Creating a Python add-in button. This process will be more involved, but is interesting, and is another possibility.
Oct 30, 2013 at 20:18 history answered Adam CC BY-SA 3.0