<?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 Exporting graphic files in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-graphic-files/m-p/257775#M11297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running ArcGIS Pro 2.5.1&lt;/P&gt;&lt;P&gt;When running an export python script as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;BR /&gt;import sys&lt;/P&gt;&lt;P&gt;if not hasattr(sys, 'argv'):&lt;BR /&gt; sys.argv = ['']&lt;/P&gt;&lt;P&gt;relpath = os.path.dirname(sys.argv[0])&lt;BR /&gt;p = arcpy.mp.ArcGISProject(relpath + "C:/tmp/5cm_2020.aprx")&lt;BR /&gt;l = p.listLayouts()[0]&lt;BR /&gt;if not l.mapSeries is None:&lt;BR /&gt; ms = l.mapSeries&lt;BR /&gt; if ms.enabled:&lt;BR /&gt; for pageNum in range(1, ms.pageCount + 1):&lt;BR /&gt; ms.currentPageNumber = pageNum&lt;BR /&gt; print("Exporting {0}".format(ms.pageRow.Sciname))&lt;BR /&gt; pageName = ms.pageRow.Sciname&lt;BR /&gt; l.exportToPNG(relpath + "C:/tmp/Graphics/{0}".format(ms.pageRow.name+ ".png"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally this works as well as expected but am seeing that some files have been exported that are missing data, as if the layout has not finished drawing but exported anyway. Is there something I am missing or has anyone experienced this? I am attempting to output over 11,000 files and manually checking to see if they are correct is a daunting prospect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2020 16:53:20 GMT</pubDate>
    <dc:creator>MarkBalman</dc:creator>
    <dc:date>2020-07-31T16:53:20Z</dc:date>
    <item>
      <title>Exporting graphic files</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-graphic-files/m-p/257775#M11297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running ArcGIS Pro 2.5.1&lt;/P&gt;&lt;P&gt;When running an export python script as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;BR /&gt;import sys&lt;/P&gt;&lt;P&gt;if not hasattr(sys, 'argv'):&lt;BR /&gt; sys.argv = ['']&lt;/P&gt;&lt;P&gt;relpath = os.path.dirname(sys.argv[0])&lt;BR /&gt;p = arcpy.mp.ArcGISProject(relpath + "C:/tmp/5cm_2020.aprx")&lt;BR /&gt;l = p.listLayouts()[0]&lt;BR /&gt;if not l.mapSeries is None:&lt;BR /&gt; ms = l.mapSeries&lt;BR /&gt; if ms.enabled:&lt;BR /&gt; for pageNum in range(1, ms.pageCount + 1):&lt;BR /&gt; ms.currentPageNumber = pageNum&lt;BR /&gt; print("Exporting {0}".format(ms.pageRow.Sciname))&lt;BR /&gt; pageName = ms.pageRow.Sciname&lt;BR /&gt; l.exportToPNG(relpath + "C:/tmp/Graphics/{0}".format(ms.pageRow.name+ ".png"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally this works as well as expected but am seeing that some files have been exported that are missing data, as if the layout has not finished drawing but exported anyway. Is there something I am missing or has anyone experienced this? I am attempting to output over 11,000 files and manually checking to see if they are correct is a daunting prospect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 16:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporting-graphic-files/m-p/257775#M11297</guid>
      <dc:creator>MarkBalman</dc:creator>
      <dc:date>2020-07-31T16:53:20Z</dc:date>
    </item>
  </channel>
</rss>

