<?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: Is it possible to update the source of a layer within an mxd using arcpy mapping? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717465#M55623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try it and it didn't work?&lt;/P&gt;&lt;P&gt;Not sure what the problem is unless you don't have the files anymore to try.&lt;/P&gt;&lt;P&gt;Look at &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatelayer.htm"&gt;UpdataLayer&lt;/A&gt; which essentially does a remove and add&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatingandfixingdatasources.htm"&gt;replaceDatasource&lt;/A&gt;&amp;nbsp;etc&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2017 18:07:46 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-09-04T18:07:46Z</dc:date>
    <item>
      <title>Is it possible to update the source of a layer within an mxd using arcpy mapping?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717464#M55622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an mxd which contains a layer (in shapefile format).&lt;/P&gt;&lt;P&gt;I wish to update the path of the shapefile to the path of another shapefile by using a stand alone script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used arcpy.mapping.AddLayer to find my layer.&lt;/P&gt;&lt;P&gt;I wonder if I can now use .replaceDataSource to update the source of the layer in the mxd?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 17:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717464#M55622</guid>
      <dc:creator>RichardGeoghegan2</dc:creator>
      <dc:date>2017-09-04T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update the source of a layer within an mxd using arcpy mapping?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717465#M55623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try it and it didn't work?&lt;/P&gt;&lt;P&gt;Not sure what the problem is unless you don't have the files anymore to try.&lt;/P&gt;&lt;P&gt;Look at &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatelayer.htm"&gt;UpdataLayer&lt;/A&gt; which essentially does a remove and add&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatingandfixingdatasources.htm"&gt;replaceDatasource&lt;/A&gt;&amp;nbsp;etc&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 18:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717465#M55623</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-09-04T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update the source of a layer within an mxd using arcpy mapping?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717466#M55624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also check to see if any of the tools in my addin will work. &amp;nbsp;I mainly works on broken links but can be adapted to work with any.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/myAlaskaGIS/2015/08/31/python-addin-for-data-inventory-and-broken-link-repair?sr=search&amp;amp;searchId=e087a2b9-5484-4d7c-8fa9-aa5893abea31&amp;amp;searchIndex=2"&gt;/blogs/myAlaskaGIS/2015/08/31/python-addin-for-data-inventory-and-broken-link-repair?sr=search&amp;amp;searchId=e087a2b9-5484-4d7c-8fa9-aa5893abea31&amp;amp;searchIndex=2&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 19:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-update-the-source-of-a-layer/m-p/717466#M55624</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-09-04T19:04:52Z</dc:date>
    </item>
  </channel>
</rss>

