Good afternoon,
Is there a way to identity all the feature classes that use a specific field in a FGDB?
Solved! Go to Solution.
Using the Generate Schema Report tool to create an xlsx schema report gives you a table that lets you answer this question without needing to write any Python:
You have to go through them individually.
Something like (untested)
gdb = r"your path to gbd"
arcpy.env.workspace = gdb
fieldName = "Martians_Present"
usesFields = []
for fc in arcpy.ListFeatureClasses():
fields = [f.name for f in arcpy.ListFields(fc)]
if fieldName in fields:
usesFields.append(fc)
print(usesFields)
Using the Generate Schema Report tool to create an xlsx schema report gives you a table that lets you answer this question without needing to write any Python: