I am trying to add a field to a specific number of feature classes, the names of the feature classes are Pumpcapacities_1
, Pump capacities_2
, Pump capacities_3
.
Each one of these feature classes are located in the same geodatabase, my idea was to use arcpy.ListFeatureClasses("Pump*","Point")
in order to select only the feature classes that start with Pump. But it's not working, each one of those feature classes are in a different feature dataset.
[![enter image description here][1]][1]
import arcpy
arcpy.env.workspace = r"C:\Users\mviera\Documents\CWADigitizeSchemaWorking.gdb"
Feature = arcpy.ListFeatureClasses("Pump*","Point")
for dataset in Feature
arcpy.AddField_management(dataset, "INDPumpCapacity","TEXT",50,"","","IND Pump Capacity","NULLABLE","NON_REQUIRED")
print dataset