Created
March 8, 2017 08:29
-
-
Save sofferm/f0d375e25d218987338b6650f9448365 to your computer and use it in GitHub Desktop.
Get Current Extent in ArcMap
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
arcpy.mapping.ListDataFrames(arcpy.mapping.MapDocument("CURRENT"))[0].extent.JSON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output in python window:
u'{"xmin":831139.62034240551,"ymin":5389184.906793993,"xmax":831760.33408383303,"ymax":5389714.3391028568,"spatialReference":{"wkid":25832,"latestWkid":25832}}'