I'd like to express my complete surprise that printing multiple map layouts in a project isn't part of the product that's shipped with this software since day 1!
If ArcPro is to be promoted as being able to create multiple layouts in a project as a selling point compared to ArcMap, you should also likewise have the ability to print all layouts, or a subset of layouts selected in a dialog box.
Automating a print from a Map Series is nice, but not viable for my particular use in this case. Rummaging through the scripting tutorials right now.
Thanks, Brandon. This would likely be more productive if posted as an idea in the ArcGIS Ideas space!
I'll do that. Thanks, Kory!
I had to search for the script again. Since this discussion is the first result from searching the web, I thought I'd include the custom script used to print these out. It's real simple, which is why this functionality aught to be included in the full version of the software.
import arcpy aprx = arcpy.mp.ArcGISProject("CURRENT")figFolder = arcpy.GetParameterAsText(0)for lyt in aprx.listLayouts(): print(" {0} ({1} x {2} {3})".format(lyt.name, lyt.pageHeight, lyt.pageWidth, lyt.pageUnits)) lyt.exportToPDF(figFolder + "\\" + lyt.name + ".pdf")
To create a script tool: https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/basics/create-a-python-script-tool.htm
Astonishing, it's not done long time ago!
Please may I ask for some help with creating this script? What do I add in the "Parameters" tab? Do I need to format the script from above in any particular way? I am a complete newbie to this... thanks!
"General"
"Parameters"
"Execution"
"Validation"