<?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 Changing an aprx relative path to UNC path in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/changing-an-aprx-relative-path-to-unc-path/m-p/1292792#M69523</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am trying to changing an aprx file relative path to a UNC path.&lt;BR /&gt;I am using the following code, which is not working.&lt;BR /&gt;My idea is having a code that I could use for changing relative path to UNC path for other aprxs.&amp;nbsp;&lt;BR /&gt;Any suggestions??&lt;/P&gt;&lt;P&gt;import arcpy, os, sys, string&lt;BR /&gt;folderPath= r"K:\Projects\TemporaryYM"&lt;BR /&gt;for filename in os.listdir(folderPath):&lt;BR /&gt;fullpath = os.path.join(folderPath, filename)&lt;BR /&gt;if os.path.isfile(fullpath):&lt;BR /&gt;basename, extension = os.path.splitext(fullpath)&lt;BR /&gt;if extension.lower() == ".aprx":&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject (fullpath)&lt;BR /&gt;aprx.findAndReplaceWorkspacePaths (r"K:\Projects\TemporaryYM", r"\\ct\dfs11\D11Gis\Projects\TemporaryYM")&lt;BR /&gt;aprx.save()&lt;BR /&gt;del aprx&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 19:53:35 GMT</pubDate>
    <dc:creator>YasnaiaMassie</dc:creator>
    <dc:date>2023-05-24T19:53:35Z</dc:date>
    <item>
      <title>Changing an aprx relative path to UNC path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/changing-an-aprx-relative-path-to-unc-path/m-p/1292792#M69523</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am trying to changing an aprx file relative path to a UNC path.&lt;BR /&gt;I am using the following code, which is not working.&lt;BR /&gt;My idea is having a code that I could use for changing relative path to UNC path for other aprxs.&amp;nbsp;&lt;BR /&gt;Any suggestions??&lt;/P&gt;&lt;P&gt;import arcpy, os, sys, string&lt;BR /&gt;folderPath= r"K:\Projects\TemporaryYM"&lt;BR /&gt;for filename in os.listdir(folderPath):&lt;BR /&gt;fullpath = os.path.join(folderPath, filename)&lt;BR /&gt;if os.path.isfile(fullpath):&lt;BR /&gt;basename, extension = os.path.splitext(fullpath)&lt;BR /&gt;if extension.lower() == ".aprx":&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject (fullpath)&lt;BR /&gt;aprx.findAndReplaceWorkspacePaths (r"K:\Projects\TemporaryYM", r"\\ct\dfs11\D11Gis\Projects\TemporaryYM")&lt;BR /&gt;aprx.save()&lt;BR /&gt;del aprx&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/changing-an-aprx-relative-path-to-unc-path/m-p/1292792#M69523</guid>
      <dc:creator>YasnaiaMassie</dc:creator>
      <dc:date>2023-05-24T19:53:35Z</dc:date>
    </item>
  </channel>
</rss>

