<?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 Re: Python snippet to export a Map Series in Pro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102433#M7894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this answers my question actually. Looks like you there is no Python way to export individual pages of a map series like there was in desktop..yet.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/13607" target="_blank"&gt;https://community.esri.com/ideas/13607&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2021 08:19:49 GMT</pubDate>
    <dc:creator>deleted-user-uXtLD1BYscf0</dc:creator>
    <dc:date>2021-06-22T08:19:49Z</dc:date>
    <item>
      <title>Python snippet to export a Map Series in Pro</title>
      <link>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102431#M7892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a Python 3 example to export a Map Series in Pro 2.0.1?&lt;/P&gt;&lt;P&gt;Below is what I've used in python 2.0 . ArcMap 10.5 - is there something equivalent for Pro that will allow me to export all pages in a map series using Python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #0000ff;"&gt;mxdchs = arcpy.mapping.MapDocument(r"[PATH TO]\GRS_CHS.mxd")&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff;"&gt;pageNameField = "GNumber"&lt;/SPAN&gt;

&lt;SPAN style="color: #0000ff;"&gt;for pageNum in range(1, mxdchs.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;mxdchs.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pageName = mxdchs.dataDrivenPages.pageRow.getValue(pageNameField)&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;outEMF = outputfolderCHS + pageName + ".emf"&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.mapping.ExportToEMF(mxdchs,outEMF)
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #0000ff;"&gt;source:
&lt;A class="link-titled" href="https://blogs.esri.com/esri/arcgis/2010/12/14/combining-data-driven-pages-with-python-and-arcpy-mapping/" title="https://blogs.esri.com/esri/arcgis/2010/12/14/combining-data-driven-pages-with-python-and-arcpy-mapping/" rel="nofollow noopener noreferrer" target="_blank"&gt;Combining Data Driven Pages with Python and arcpy.mapping | ArcGIS Blog&lt;/A&gt;&amp;nbsp;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102431#M7892</guid>
      <dc:creator>deleted-user-uXtLD1BYscf0</dc:creator>
      <dc:date>2021-12-12T16:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python snippet to export a Map Series in Pro</title>
      <link>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102432#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;arcpy.mapping is now &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm"&gt;arcpy.mp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Too many things to decipher to provide a direct conversion, but you could get started in the arcpy documentation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 18:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102432#M7893</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-29T18:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Python snippet to export a Map Series in Pro</title>
      <link>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102433#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this answers my question actually. Looks like you there is no Python way to export individual pages of a map series like there was in desktop..yet.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/13607" target="_blank"&gt;https://community.esri.com/ideas/13607&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102433#M7894</guid>
      <dc:creator>deleted-user-uXtLD1BYscf0</dc:creator>
      <dc:date>2021-06-22T08:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python snippet to export a Map Series in Pro</title>
      <link>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102434#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like they added this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="" style="margin-left: 59.4167px; padding-left: 0.5rem; padding-right: 0.5rem;"&gt;&lt;DIV class=""&gt;MapSeries example 3&lt;DIV class=""&gt;&lt;P style="margin-bottom: 1.55rem;"&gt;The following script exports only the selected pages to a single, multipage PDF.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;import&lt;/SPAN&gt; arcpy, os, sys 
relpath = os.path.dirname(sys.argv[&lt;SPAN class="" style="color: #1c00cf;"&gt;0&lt;/SPAN&gt;])&amp;nbsp; 
p = arcpy.mp.ArcGISProject(relpath + &lt;SPAN class="" style="color: #c41a16;"&gt;"\\MapSeries\\US_States.aprx"&lt;/SPAN&gt;) 
l = p.listLayouts()[&lt;SPAN class="" style="color: #1c00cf;"&gt;0&lt;/SPAN&gt;] 
&lt;SPAN class="" style="color: #aa0d91;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="" style="color: #aa0d91;"&gt;not&lt;/SPAN&gt; l.mapSeries &lt;SPAN class="" style="color: #aa0d91;"&gt;is&lt;/SPAN&gt; &lt;SPAN class="" style="color: #aa0d91;"&gt;None&lt;/SPAN&gt;:&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;ms = l.mapSeries&amp;nbsp;&amp;nbsp; 
&lt;SPAN class="" style="color: #aa0d91;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&lt;/SPAN&gt; ms.enabled:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ms = l.mapSeries&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;indexLyr = ms.indexLayer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.SelectLayerByAttribute_management(indexLyr, &lt;SPAN class="" style="color: #c41a16;"&gt;'NEW_SELECTION'&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #c41a16;"&gt;"SUB_REGION = 'New England'"&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ms.exportToPDF(relpath + &lt;SPAN class="" style="color: #c41a16;"&gt;"\\Output\\Ex3_SelectedFeatures.pdf"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #c41a16;"&gt;'SELECTED'&lt;/SPAN&gt;)

&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/mapseries-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/mapseries-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;MapSeries—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-snippet-to-export-a-map-series-in-pro/m-p/102434#M7895</guid>
      <dc:creator>SolanaFoo4</dc:creator>
      <dc:date>2021-12-11T06:18:54Z</dc:date>
    </item>
  </channel>
</rss>

