Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. fcList = arcpy.ListFeatureClasses("*")
  2.  
  3. fields = arcpy.ListFields(fcList)
  4. for field in fields:
  5.  
  6. print("Field: {0}".format(field.name))
  7. print("Alias: {0}".format(field.aliasName))
  8. print("Type: {0}".format(field.type))
  9.  
  10. fields = arcpy.ListFields(fcList)
  11.  
  12. fcList = arcpy.ListFeatureClasses("*")
  13.  
  14. for fc in fcList: ## Added!
  15. fields = arcpy.ListFields(fc) ## Changed!
  16.  
  17. for field in fields:
  18. print("Field: {0}".format(field.name))
  19. print("Alias: {0}".format(field.aliasName))
  20. print("Type: {0}".format(field.type))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement