Adding fields to an attribute table with script in ArcGIS Pro

1000
1
05-18-2022 06:32 AM
Sanita_Richards
New Contributor

How do I add fields to an attribute table using a script in ArcGIS Pro. Currently, I have a script that is added to ArcMap using the python toolbox which auto-generates the field I need in the attribute table. How do I add fields to an attribute table using this script or something similar in ArcGIS Pro? I'm not sure how to get it to work in Pro. Can someone please assist? 

0 Kudos
1 Reply
MicZatorsky_AEC
Occasional Contributor III

The documentation for Add Field contains a couple of examples of a script to add field to an Attribute table.

If you are new to python, fill in the GUI dialog for Add Field, then use the Run button's option to write the code for you

MicZatorsky_AEC_0-1652992608525.png

 

0 Kudos