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()
view = mp.defaultCamera
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?