relevant references:
How To: Print the list of feature classes for an Enterprise geodatabase
Python List Shapefiles
ListFeatureClasses—ArcGIS Pro | Documentation
arcpy - Listing all feature classes in File Geodatabase, including within feature datasets? - Geographic Information Sys…
os.walk | ArcPy Café
Walk—ArcGIS Pro | Documentation
arcpy - Listing Feature Classes of Multiple geodatabase in Multiple Folder? - Geographic Information Systems Stack Excha…
gist:4577289 · GitHub
arcpy - How to make a GIS inventory? - Geographic Information Systems Stack Exchange
arcpy - List all Feature datasets & feature classes from a single geodatabase into CSV - Geographic Information Systems …
To generate a list of anything (even recursively in a folder tree) in model builder right-click, choose Iterators and what you want to list. Then double click it and enter the particulars (ie where you want to look), and then pipe the pathname output into the Collect Values tool and run it. This easily generates a list of with no coding; you could use Calculate Value to convert it to a string to paste into a text file or whatever.
I want to list all features, by feature dataset, to deliver to the staff at my office.
datasetList = arcpy.ListDatasets("*", "Feature") for dataset in datasetList: print dataset fcList = arcpy.ListFeatureClasses("*","",dataset) fcList.sort() for fc in fcList: print fc
datasetList = arcpy.ListDatasets("*", "Feature") for dataset in datasetList: print dataset fcList = arcpy.ListFeatureClasses("*","",dataset) for fc in fcList: print fc
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.