<?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: Add data in to arc from a table???? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785222#M1746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome... Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think this will work using a database not in the fgdb?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 20:39:49 GMT</pubDate>
    <dc:creator>PatrickRobb</dc:creator>
    <dc:date>2014-10-07T20:39:49Z</dc:date>
    <item>
      <title>Add data in to arc from a table????</title>
      <link>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785220#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way in either model builder or Python (or anything at this point) to import from a table, files in a file geodatabase. I am looking at roughly 600 files in said geodatabase and it can be a little time consuming to manually pull them in to ArcGIS. The table consists of the file name and file path. Does anyone know if this is possible and if so how do I go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance... Hopefully&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785220#M1744</guid>
      <dc:creator>PatrickRobb</dc:creator>
      <dc:date>2014-10-07T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add data in to arc from a table????</title>
      <link>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785221#M1745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is some example code you can run in the Python window within ArcMap.&amp;nbsp; It will iterate through a table called 'DataLocation' in the File Geodatabase 'Test'.&amp;nbsp; It concatenates the fields 'FilePath' and 'FileName' to add the table/feature class it references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14127040528181264 jive_text_macro" jivemacro_uid="_14127040528181264"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;from arcpy import env&lt;/P&gt;
&lt;P&gt;env.workspace = r"C:\temp\python\test.gdb"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;
&lt;P&gt;df = arcpy.mapping.ListDataFrames(mxd, "*")[0]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table = "DataLocation"&lt;/P&gt;
&lt;P&gt;fields = ["FilePath", "FileName"]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;with arcpy.da.SearchCursor(table, fields) as cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = row[0] + "\\" + row[1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fGDB_Table = arcpy.mapping.TableView(path)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.AddTableView(df, fGDB_Table)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except ValueError:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addLayer = arcpy.mapping.Layer(path)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.AddLayer(df, addLayer, "BOTTOM")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;del mxd, cursor&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785221#M1745</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-10-07T17:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add data in to arc from a table????</title>
      <link>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785222#M1746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome... Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think this will work using a database not in the fgdb?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 20:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/add-data-in-to-arc-from-a-table/m-p/785222#M1746</guid>
      <dc:creator>PatrickRobb</dc:creator>
      <dc:date>2014-10-07T20:39:49Z</dc:date>
    </item>
  </channel>
</rss>

