Using arcpy in a Geoprocessing script, I can import a map or layout into the project. However I can't make it 'open' as a new window. It would be really good if this was possible.
Is this what you want?
aprx = arcpy.mp.ArcGISProject("current") m = aprx.listMaps()[0] m.openView() l = aprx.listLayouts()[0] l.openView()
Ah, I didn't realise those have been added! I had last looked when I had v2.8
That works well for a map window, yes.
However the layout option gives an error when run from an arcpy geoprocessing script? It works in the python window ok, just not from a gp script. Using v3.0.0
Thanks for pointing out the map option.
As pointed out by @JohannesLindner this is already available. Changing status to already offered.
Jeff - Layout and arcpy.mp teams
Inicia sesión para publicar, seguir contenido y más. ¿Nuevo aquí? Regístrate gratis.