Skip to content

Instantly share code, notes, and snippets.

@cindygis
Last active August 29, 2015 14:17
Show Gist options
  • Save cindygis/85e6ee811eb548b15043 to your computer and use it in GitHub Desktop.
Save cindygis/85e6ee811eb548b15043 to your computer and use it in GitHub Desktop.
Prints out the key-values pairs of the dictionary of subtypes on a feature class.
import arcpy
ftr = r"C://Some//Arb//Folder//work.gdb//ftr"
subs = arcpy.da.ListSubtypes(ftr)
for k, v in subs.iteritems():
print k, v['Name']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment