AnsweredAssumed Answered

ArcPy List Datasets

Question asked by Humbrian on Jun 19, 2016
Latest reply on Jun 22, 2016 by Humbrian

I'm an ArcPy neophyte/beginner - and this might be a stupid question, but I simply want to return a list of all the contents in a .gdb.  When I run the arcpy,listdatasets("*","Feature") function, it appears to work (no errors reported), but I do not 'see' anything.  I  used it with the 'print' function as well (using the example code provided in the help - copied below)  - but I still don't see anything.  Where does it go?  I only need to see it print to screen so I can copy/paste it....



import arcpy  arcpy.env.workspace = "c:/data" 
# Print to the Interactive window all the feature datasets in the
# workspace that start with the letter

datasets = arcpy.ListDatasets("C*", "Feature") 
for dataset in datasets: