Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- from arcpy import env
- arcpy.env.workspace = "C:/Users/username/Downloads/prime/Prime_Template.gdb/Prime_Template.gdb"
- print "starting..."
- featureclasses = arcpy.ListFeatureClasses()
- for fc in featureclasses:
- print fc
- fcList = arcpy.ListFeatureClasses()
- print fcList
- print "nn"
- print "List Feature Class fields..."
- print "nn"
- for fc1 in fcList:
- fields = arcpy.ListFields(fc1)
- for field in fields:
- print "{0} is a type of {1} with a length of {2}".format(field.name, field.type, field.length)
Add Comment
Please, Sign In to add comment