<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MapSeries - exporting multiple files via arcpy in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/mapseries-exporting-multiple-files-via-arcpy/m-p/136185#M5867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a ArcGIS Pro project with multiple layouts and mapseries, I'm trying to write a script that will allow you to specify a layout and range and export the corresponding maps as a PDF. &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy.mp&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#project&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject(r"D:\Project.aprx")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#choose mapseries, range and output folder&lt;BR /&gt;MapSeriesCurrent = 'MS1'&lt;BR /&gt;MapSeriesRange = '1-5'&lt;BR /&gt;Output = r"D:\Users\JoeBloggs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#export map series as PDF&lt;BR /&gt;for lyt in aprx.listLayouts():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ms = lyt.mapSeries&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if MapSeriesCurrent in lyt.name and ms.enabled: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ms.exportToPDF(Output+"\\Map","RANGE",MapSeriesRange,"&lt;SPAN&gt;PDF_MULTIPLE_FILES_PAGE_NAME"&lt;/SPAN&gt;,resolution=300)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This script works fine - except for the multiple_files parameter ("&lt;SPAN&gt;PDF_MULTIPLE_FILES_PAGE_NAME"&lt;/SPAN&gt;). When I remove that the script produces the pdfs as expected in single file but once I add that parameter there is no output or error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the MapSeries in the project and they have set Name and Sort Fields,changing to&amp;nbsp;&lt;SPAN&gt;PDF_MULTIPLE_FILES_PAGE_NUMBER&lt;/SPAN&gt; doesn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2019 01:07:18 GMT</pubDate>
    <dc:creator>IceCreamBean</dc:creator>
    <dc:date>2019-06-26T01:07:18Z</dc:date>
    <item>
      <title>MapSeries - exporting multiple files via arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mapseries-exporting-multiple-files-via-arcpy/m-p/136185#M5867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a ArcGIS Pro project with multiple layouts and mapseries, I'm trying to write a script that will allow you to specify a layout and range and export the corresponding maps as a PDF. &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy.mp&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#project&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject(r"D:\Project.aprx")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#choose mapseries, range and output folder&lt;BR /&gt;MapSeriesCurrent = 'MS1'&lt;BR /&gt;MapSeriesRange = '1-5'&lt;BR /&gt;Output = r"D:\Users\JoeBloggs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#export map series as PDF&lt;BR /&gt;for lyt in aprx.listLayouts():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ms = lyt.mapSeries&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if MapSeriesCurrent in lyt.name and ms.enabled: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ms.exportToPDF(Output+"\\Map","RANGE",MapSeriesRange,"&lt;SPAN&gt;PDF_MULTIPLE_FILES_PAGE_NAME"&lt;/SPAN&gt;,resolution=300)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This script works fine - except for the multiple_files parameter ("&lt;SPAN&gt;PDF_MULTIPLE_FILES_PAGE_NAME"&lt;/SPAN&gt;). When I remove that the script produces the pdfs as expected in single file but once I add that parameter there is no output or error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the MapSeries in the project and they have set Name and Sort Fields,changing to&amp;nbsp;&lt;SPAN&gt;PDF_MULTIPLE_FILES_PAGE_NUMBER&lt;/SPAN&gt; doesn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 01:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mapseries-exporting-multiple-files-via-arcpy/m-p/136185#M5867</guid>
      <dc:creator>IceCreamBean</dc:creator>
      <dc:date>2019-06-26T01:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: MapSeries - exporting multiple files via arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mapseries-exporting-multiple-files-via-arcpy/m-p/1106499#M46571</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/292718"&gt;@IceCreamBean&lt;/a&gt;&amp;nbsp;I seem to be getting the same error. Any luck with this?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 18:19:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mapseries-exporting-multiple-files-via-arcpy/m-p/1106499#M46571</guid>
      <dc:creator>TimothyMcKinney</dc:creator>
      <dc:date>2021-10-11T18:19:16Z</dc:date>
    </item>
  </channel>
</rss>

