<?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 Add Data in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521498#M17331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not entirely sure what you mean. Right now there is a workflow that might work for you to add data to an MXD:&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Save out a layer file with the desired symbology, with any data source&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use arcpy.mapping.Layer(filename) object to get a handle to it in Python&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Change the layer.dataSource property to your new data source (make sure it's the same feature type as the saved layer; point/poly/etc)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use arcpy.mapping.AddLayer to add the edited layer to the desired dataframe&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;There is also the arcpy.mapping.UpdateDataSources function which has bulk data source updating capability on map documents.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will play with this, I think the AddLayer may work for us, so will play with it, thank you Jason.&amp;nbsp; I haven't entered the Mapping package, officially yet.&amp;nbsp; I was trying to setup a test database for Scene, which I am doing in Map, the addLayer would be handy for populating a sxd after I do selections in Map, so will tinker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on Name Add Layer denotes a feature layer rather than a feature class, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2009 15:55:59 GMT</pubDate>
    <dc:creator>TedCronin</dc:creator>
    <dc:date>2009-11-23T15:55:59Z</dc:date>
    <item>
      <title>Add Data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521496#M17329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This would be useful to help automate data updates between different mxds, and other formats (3dd, and sxd), so would be nice to have the capability in arcpy to add data.&amp;nbsp; Selections that need to be used in other applications, copy data here after I work on it there, all in py.&amp;nbsp; This would be cool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 15:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521496#M17329</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2009-11-19T15:03:51Z</dc:date>
    </item>
    <item>
      <title>Add Data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521497#M17330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not entirely sure what you mean. Right now there is a workflow that might work for you to add data to an MXD:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Save out a layer file with the desired symbology, with any data source&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use arcpy.mapping.Layer(filename) object to get a handle to it in Python&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Change the layer.dataSource property to your new data source (make sure it's the same feature type as the saved layer; point/poly/etc)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use arcpy.mapping.AddLayer to add the edited layer to the desired dataframe&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also the arcpy.mapping.UpdateDataSources function which has bulk data source updating capability on map documents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2009 00:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521497#M17330</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2009-11-21T00:12:25Z</dc:date>
    </item>
    <item>
      <title>Add Data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521498#M17331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not entirely sure what you mean. Right now there is a workflow that might work for you to add data to an MXD:&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Save out a layer file with the desired symbology, with any data source&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use arcpy.mapping.Layer(filename) object to get a handle to it in Python&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Change the layer.dataSource property to your new data source (make sure it's the same feature type as the saved layer; point/poly/etc)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use arcpy.mapping.AddLayer to add the edited layer to the desired dataframe&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;There is also the arcpy.mapping.UpdateDataSources function which has bulk data source updating capability on map documents.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will play with this, I think the AddLayer may work for us, so will play with it, thank you Jason.&amp;nbsp; I haven't entered the Mapping package, officially yet.&amp;nbsp; I was trying to setup a test database for Scene, which I am doing in Map, the addLayer would be handy for populating a sxd after I do selections in Map, so will tinker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on Name Add Layer denotes a feature layer rather than a feature class, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 15:55:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521498#M17331</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2009-11-23T15:55:59Z</dc:date>
    </item>
    <item>
      <title>Add Data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521499#M17332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is also the arcpy.mapping.UpdateDataSources function which has bulk data source updating capability on map documents.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Does this function work?&amp;nbsp; I tried using this, it returns successfully creating a new MXD, but nothing changes in the document.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 17:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/add-data/m-p/521499#M17332</guid>
      <dc:creator>MikeLouwrens</dc:creator>
      <dc:date>2009-11-23T17:57:46Z</dc:date>
    </item>
  </channel>
</rss>

