How would I go about making a script that adds multiple fields to an attribute table?
See AddField. I usually have the field name, type, alias, and other properties in a list. For multiple fields, I would then have a list of lists to loop through. In a very rough form, something like:
fields = [ ['fldName', 'TEXT', '50', 'fldAlias', .... other properties ], ['fldName2', 'TEXT', '50', 'fldAlias2', .... other properties ] ]for fld in fields: arcpy.AddField_management(dbFeature,fld,fld,"#","#", fld,fld,nullable,"NON_REQUIRED", ...etc...)
Retrieving data ...