AnsweredAssumed Answered

How to get user current extent in arcpro

Question asked by usmcsledhead1000 on Oct 31, 2017
Latest reply on Oct 31, 2017 by ian.mcintosh

I am trying to figure out how to write python code to get the user current extent from the map view. so far I have this

aprx = arcpy.mp.ArcGISProject('Current')

mp = aprx.listMaps()[0]

view = mp.defaultCamera

print(view.getExtent())

 

however, I have to manually hit save for the getExtent to work. is there a way to get the current extent from the Map view?

Outcomes