import arcpy from arcpy import env userinputworkspace = sys.argv[1] userinputvalue = sys.argv[2] arcpy.env.workspace = userinputworkspace fcs = arcpy.ListFeatureClasses() for fc in fcs: AssignDefaultToField_management (fc, field_name, userinputvalue, ["0: first description", "1: second description", etc])
import arcpy from arcpy import env userinputworkspace = sys.argv[1] userinputvalue = sys.argv[2] arcpy.env.workspace = userinputworkspace fcs = arcpy.ListFeatureClasses() for fc in fcs: arcpy.CalculateField_management(fc, "yourfieldnamehere", userinputvalue)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.