Created
June 1, 2016 19:02
-
-
Save danmaps/a5aede70cd9a32fffe2001bf7f1f7082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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