Is there a way to change from layout view to data view using python? I would prefer to do it using arcpy.
mxd = arcpy.mapping.MapDocument('CURRENT')
mxd.activeView = "my_data_frame_name"
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
To go the other way is as easy as arcpy.mapping.MapDocument("current").activeView = "PAGE_LAYOUT".
arcpy.mapping.MapDocument("current").activeView = "PAGE_LAYOUT"
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago
1 year ago