import arcpy rootWorkspace = r"C:\tmp\Test.gdb" arcpy.env.workspace = rootWorkspace #list all feature datasets featureDatasets = arcpy.ListDatasets("", "Feature") for dataset in featureDatasets: #for each feature dataset change workspace and list feature classes it contains arcpy.env.workspace = rootWorkspace + "\\" + dataset print "Geodatabase dataset: " + dataset featureClasses = arcpy.ListFeatureClasses() for fc in featureClasses: 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.