Good afternoon,
Is there a way to identity all the feature classes that use a specific field in a FGDB?
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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.