<?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: Create table of attributes, based on DataDriven Maps using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707217#M54795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit tricky to understand exactly what you require here...&lt;/P&gt;&lt;P&gt;But does the sample sit table have any join to the data driven pages one?&lt;/P&gt;&lt;P&gt;Just thinking you could join them then define a table definition based on this.&lt;/P&gt;&lt;P&gt;As the definition changes, what you see would change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 16:07:56 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2016-10-03T16:07:56Z</dc:date>
    <item>
      <title>Create table of attributes, based on DataDriven Maps using Python</title>
      <link>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707216#M54794</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;I have been doing some googling and am yet to find what I am looking for, basically because I dont know what im trying to do is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data driven map set, it is based on a polygon feature class called 'Data Driven Grid'. This grid has an attribute called 'classification' (AKA the location), and I have a py script which iterates through these locations and exports a single PDF... here is my current py:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import os, arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
#Create final output PDF file 
finalFile = r"C:\temp\BensMap.pdf"
if os.path.isfile(finalFile):
&amp;nbsp; os.remove(finalFile)
&amp;nbsp; print 'Removed existing output file'
mxd.dataDrivenPages.exportToPDF(finalFile, page_range_type="ALL", image_compression="DEFLATE")
del mxd
print 'complete'&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a second point feature class (called 'sampling sites') displaying points that have a matching location, so these are basically 'data driven'. This works well, it only shows the points that match the page that is being plotted.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="292" src="https://community.esri.com/legacyfs/online/197970_pastedImage_1.png" style="height: 292px; width: 255.053px;" width="255" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to so is similar to a report, I want a table to be placed on my page, and the table shows the sample site number, and associated attributes.&lt;/P&gt;&lt;P&gt;I am happy for the table to be fixed number of rows, my data only varies from 7-10 attributes each time, so a few blank rows won't hurt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me if there is a name for what I am trying to do? I have no idea if this is possible as i am not trying to return attributes from my data driven page feature class, but another feature class all together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707216#M54794</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2021-12-12T05:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of attributes, based on DataDriven Maps using Python</title>
      <link>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707217#M54795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit tricky to understand exactly what you require here...&lt;/P&gt;&lt;P&gt;But does the sample sit table have any join to the data driven pages one?&lt;/P&gt;&lt;P&gt;Just thinking you could join them then define a table definition based on this.&lt;/P&gt;&lt;P&gt;As the definition changes, what you see would change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707217#M54795</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-10-03T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of attributes, based on DataDriven Maps using Python</title>
      <link>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707218#M54796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the general idea is to add a table to the layout (&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/adding-a-table-to-a-layout.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/adding-a-table-to-a-layout.htm"&gt;Adding a table to a layout—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;), however, I believe there may be a bug related to refreshing the table to reflect the current data driven page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-of-attributes-based-on-datadriven/m-p/707218#M54796</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-10-03T16:48:39Z</dc:date>
    </item>
  </channel>
</rss>

