james.gooding_CoopEstates

arcGIS Pro Extents in the Viewing Pane

Discussion created by james.gooding_CoopEstates on Jan 12, 2017
Latest reply on Jan 13, 2017 by bixb0012

Hi, 

 

How do I get the extents that are visible in the viewing pane. In old arcpy it would've been:

 

  1. import arcpy  
  2. import arcpy.mapping  
  3.   
  4.   
  5. ## Sets the MXD file  
  6. IMXD = arcpy.mapping.MapDocument("CURRENT")  
  7. ## Sets the Dataframe  
  8. DF = arcpy.mapping.ListDataFrames(IMXD, "Layers")[0]  
  9.   
  10. print DF.extent  

 

Any help greatly appreciated.

 

James

data frame extent graphics extent Nick Knowles

Outcomes