<?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 Map Series export individual project in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-series-export-individual-project/m-p/1135495#M7021</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I trying to loop through the Map Series and each page to exported as aprx file as a single project&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following code but is exporting the layout, I tried to loop through the map series and constantly im receiving an error that the Maps series is not iterable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have any of you tried that before I have stuck now? I have tried to use the cursor as well but seems to receive an errors that says can not open&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is welcome&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;    aprx = arcpy.mp.ArcGISProject(&lt;SPAN&gt;r"C:\Users\NataliSuportman\Documents\ArcGIS\Projects\A120 Essex\A120 Essex A3 template.aprx"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;    l = aprx.listLayouts(&lt;SPAN&gt;"058_ARDG_A120_LOP_OPTB 1 2"&lt;/SPAN&gt;)[&lt;SPAN&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;    &lt;SPAN&gt;if not &lt;/SPAN&gt;l.mapSeries &lt;SPAN&gt;is None&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;" " &lt;/SPAN&gt;+ l.name)&lt;BR /&gt;        l.exportToPAGX(&lt;SPAN&gt;r'C:\Users\NataliSuportman\Documents\ArcGIS\Projects\A120 Essex\058_A120.pagx'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Error: " &lt;/SPAN&gt;+ e.args[&lt;SPAN&gt;0&lt;/SPAN&gt;])&lt;BR /&gt;&lt;SPAN&gt;#print(time.asctime())&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 16:39:11 GMT</pubDate>
    <dc:creator>VagIlias87</dc:creator>
    <dc:date>2022-01-20T16:39:11Z</dc:date>
    <item>
      <title>Map Series export individual project</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-series-export-individual-project/m-p/1135495#M7021</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I trying to loop through the Map Series and each page to exported as aprx file as a single project&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following code but is exporting the layout, I tried to loop through the map series and constantly im receiving an error that the Maps series is not iterable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have any of you tried that before I have stuck now? I have tried to use the cursor as well but seems to receive an errors that says can not open&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is welcome&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;    aprx = arcpy.mp.ArcGISProject(&lt;SPAN&gt;r"C:\Users\NataliSuportman\Documents\ArcGIS\Projects\A120 Essex\A120 Essex A3 template.aprx"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;    l = aprx.listLayouts(&lt;SPAN&gt;"058_ARDG_A120_LOP_OPTB 1 2"&lt;/SPAN&gt;)[&lt;SPAN&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;    &lt;SPAN&gt;if not &lt;/SPAN&gt;l.mapSeries &lt;SPAN&gt;is None&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;" " &lt;/SPAN&gt;+ l.name)&lt;BR /&gt;        l.exportToPAGX(&lt;SPAN&gt;r'C:\Users\NataliSuportman\Documents\ArcGIS\Projects\A120 Essex\058_A120.pagx'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Error: " &lt;/SPAN&gt;+ e.args[&lt;SPAN&gt;0&lt;/SPAN&gt;])&lt;BR /&gt;&lt;SPAN&gt;#print(time.asctime())&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 16:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-series-export-individual-project/m-p/1135495#M7021</guid>
      <dc:creator>VagIlias87</dc:creator>
      <dc:date>2022-01-20T16:39:11Z</dc:date>
    </item>
  </channel>
</rss>

