<?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 Update datasources of .pagx files with Python in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1087317#M44230</link>
    <description>&lt;P&gt;I'm writing a python tool to update datasources in multiple ArcGIS pro related files from a network location to a local drive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With ArcGIS Projects (.aprx) files, this is fine as there are methods on the project/map to update datasources. For layout files- (.pagx) which we use for standardised templates imported into the users prodject using another custom python tool, there is no such methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I bulk update .pagx layouts? Is it possible to generate a temporary ArcGIS pro project in memory, import the layout, update datasources, re-export the pagx?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 23:24:59 GMT</pubDate>
    <dc:creator>GeoNZ</dc:creator>
    <dc:date>2021-08-09T23:24:59Z</dc:date>
    <item>
      <title>Update datasources of .pagx files with Python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1087317#M44230</link>
      <description>&lt;P&gt;I'm writing a python tool to update datasources in multiple ArcGIS pro related files from a network location to a local drive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With ArcGIS Projects (.aprx) files, this is fine as there are methods on the project/map to update datasources. For layout files- (.pagx) which we use for standardised templates imported into the users prodject using another custom python tool, there is no such methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I bulk update .pagx layouts? Is it possible to generate a temporary ArcGIS pro project in memory, import the layout, update datasources, re-export the pagx?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 23:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1087317#M44230</guid>
      <dc:creator>GeoNZ</dc:creator>
      <dc:date>2021-08-09T23:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update datasources of .pagx files with Python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1087928#M44333</link>
      <description>&lt;P&gt;Hello Timothy,&lt;/P&gt;&lt;P&gt;We do have in our future plans to support directly updating data sources in pagx/mapx files but in the meantime there is an easy work around.&lt;/P&gt;&lt;P&gt;Import the pagx into an existing project, change the data sources using the techniques documented and then use Layout.exportToPAGX (or Map.exportToMAPX) to overwrite your existing file.&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1087928#M44333</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-08-11T14:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update datasources of .pagx files with Python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1088710#M44411</link>
      <description>&lt;P&gt;Thanks for the reply Jeff- I'll try this, but have a feeling I may run into issues importing multiple pagxs into the same project (as there's no way to programmatically 'clean up' as I go by deleting those layouts and maps)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 00:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/update-datasources-of-pagx-files-with-python/m-p/1088710#M44411</guid>
      <dc:creator>GeoNZ</dc:creator>
      <dc:date>2021-08-13T00:04:16Z</dc:date>
    </item>
  </channel>
</rss>

