<?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 adding a gdb table to an mxd in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/adding-a-gdb-table-to-an-mxd/m-p/643079#M21442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering how to add a gdb table to an mxd map. I've been successful using arcpy.mapping.AddLayer for shape files in a directory, but I don't know how to reference a table within a gdb database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elaine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Apr 2013 23:55:39 GMT</pubDate>
    <dc:creator>ElaineFarstad</dc:creator>
    <dc:date>2013-04-07T23:55:39Z</dc:date>
    <item>
      <title>adding a gdb table to an mxd</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-a-gdb-table-to-an-mxd/m-p/643079#M21442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering how to add a gdb table to an mxd map. I've been successful using arcpy.mapping.AddLayer for shape files in a directory, but I don't know how to reference a table within a gdb database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elaine&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 23:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-a-gdb-table-to-an-mxd/m-p/643079#M21442</guid>
      <dc:creator>ElaineFarstad</dc:creator>
      <dc:date>2013-04-07T23:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: adding a gdb table to an mxd</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-a-gdb-table-to-an-mxd/m-p/643080#M21443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Elaine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can accomplish this by using the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/TableView/00s300000069000000/"&gt;TableView&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/AddTableView/00s30000006m000000/"&gt;AddTableView&lt;/A&gt;&lt;SPAN&gt; methods:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames(mxd, "New Data Frame")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table = arcpy.mapping.TableView(r"C:\Test\TestGDB.gdb\testTable")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.AddTableView(df, table)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.RefreshTOC()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 13:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-a-gdb-table-to-an-mxd/m-p/643080#M21443</guid>
      <dc:creator>MatthewPayne</dc:creator>
      <dc:date>2013-04-08T13:27:22Z</dc:date>
    </item>
  </channel>
</rss>

