Skip to content

Instantly share code, notes, and snippets.

@danmaps
Created June 1, 2016 19:02
Show Gist options
  • Save danmaps/a5aede70cd9a32fffe2001bf7f1f7082 to your computer and use it in GitHub Desktop.
Save danmaps/a5aede70cd9a32fffe2001bf7f1f7082 to your computer and use it in GitHub Desktop.
mxd = arcpy.mapping.MapDocument("CURRENT")
... for lyr in arcpy.mapping.ListLayers(mxd):
... if lyr.supports("DATASOURCE"):
... print "Count:" + str(arcpy.GetCount_management(lyr.dataSource))+"\tLayer: " + lyr.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment