<?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 Data Driven Page Refresh Picture in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/data-driven-page-refresh-picture/m-p/453301#M4954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using ArcGIS 10 SP4. I've a data driven pages and I need to update image in each page based on the attribute of grid shape file. Can anyone help me please? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 13:05:33 GMT</pubDate>
    <dc:creator>SahasShrestha</dc:creator>
    <dc:date>2012-04-12T13:05:33Z</dc:date>
    <item>
      <title>Data Driven Page Refresh Picture</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-page-refresh-picture/m-p/453301#M4954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using ArcGIS 10 SP4. I've a data driven pages and I need to update image in each page based on the attribute of grid shape file. Can anyone help me please? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 13:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-page-refresh-picture/m-p/453301#M4954</guid>
      <dc:creator>SahasShrestha</dc:creator>
      <dc:date>2012-04-12T13:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Page Refresh Picture</title>
      <link>https://community.esri.com/t5/mapping-questions/data-driven-page-refresh-picture/m-p/453302#M4955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At 10.0 you will need to use arcpy.mapping to update the picture as you go from page to page.&amp;nbsp; At 10.1, we've added picture element properties that allow you to reference a field in a table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some sample code for 10.0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\project.mxd")
pict = arcpy.mapping.ListLayoutElements(mxd, "PICTURE_ELEMENT", "photo")[0]
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = pageNum
&amp;nbsp;&amp;nbsp;&amp;nbsp; photoField = mxd.dataDrivenPages.pageRow.picture&amp;nbsp; #picture is the name of the field in the index layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; pict.imageSource = photoField
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPDF(mxd, r"C:\Project\OutPut\Output" + str(pageNum) + ".pdf")
del mxd
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/data-driven-page-refresh-picture/m-p/453302#M4955</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-12-11T20:13:09Z</dc:date>
    </item>
  </channel>
</rss>

