<?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 Relative Path not working in ArcMap and ArcObjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758071#M20107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to set a relative paths for my MXD file. I have my MXD as c:\workspace\rastertest.mxd and the data is located at c:\workstation\data\testdted.dt2. When I set Relative Path to true in ArcMap or in ArcObjects using IMapDocument.SaveAs(true, true) the new raster data source will point to C:\Users\tester\AppData\Local\Temp\data. Do you know what could be causing this? I would like to eventually move around the MXD file and Rasters and keeping the same file hierarchy. I'm using ArcMap 10.0 and Windows 7 64 bit. Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, when I run ArcMap 10.0 on a Windows XP machine the relative paths work correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS I posted this question on ArcGIS Desktop forum. I didn't know which one would be more appropriate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 19:10:31 GMT</pubDate>
    <dc:creator>DavidStreet1</dc:creator>
    <dc:date>2012-04-05T19:10:31Z</dc:date>
    <item>
      <title>Relative Path not working in ArcMap and ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758071#M20107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to set a relative paths for my MXD file. I have my MXD as c:\workspace\rastertest.mxd and the data is located at c:\workstation\data\testdted.dt2. When I set Relative Path to true in ArcMap or in ArcObjects using IMapDocument.SaveAs(true, true) the new raster data source will point to C:\Users\tester\AppData\Local\Temp\data. Do you know what could be causing this? I would like to eventually move around the MXD file and Rasters and keeping the same file hierarchy. I'm using ArcMap 10.0 and Windows 7 64 bit. Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, when I run ArcMap 10.0 on a Windows XP machine the relative paths work correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS I posted this question on ArcGIS Desktop forum. I didn't know which one would be more appropriate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 19:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758071#M20107</guid>
      <dc:creator>DavidStreet1</dc:creator>
      <dc:date>2012-04-05T19:10:31Z</dc:date>
    </item>
    <item>
      <title>Relative Path not working in ArcMap and ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758072#M20108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to set a relative paths for my MXD file. I have my MXD as c:\workspace\rastertest.mxd and the data is located at c:\workstation\data\testdted.dt2. When I set Relative Path to true in ArcMap or in ArcObjects using IMapDocument.SaveAs(true, true) the new raster data source will point to C:\Users\tester\AppData\Local\Temp\data. Do you know what could be causing this? I would like to eventually move around the MXD file and Rasters and keeping the same file hierarchy. I'm using ArcMap 10.0 and Windows 7 64 bit. Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, when I run ArcMap 10.0 on a Windows XP machine the relative paths work correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS I posted this question on ArcGIS Desktop forum.&amp;nbsp;&amp;nbsp; I didn't know which one would be more appropriate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 19:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758072#M20108</guid>
      <dc:creator>DavidStreet1</dc:creator>
      <dc:date>2012-04-05T19:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Path not working in ArcMap and ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758073#M20109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the XP machine 32 bit and are you using Visual Studio .NET?&amp;nbsp; If so, then check your target platform setting in Visual Studio to make sure it's set to x86 for all configurations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 20:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758073#M20109</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-04-05T20:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Path not working in ArcMap and ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758074#M20110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is the XP machine 32 bit and are you using Visual Studio .NET?&amp;nbsp; If so, then check your target platform setting in Visual Studio to make sure it's set to x86 for all configurations.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the XP machine is 32 bit and using Visual Studios 2008.&amp;nbsp;&amp;nbsp; The Windows 7 machine is 64 bit but we are compiling in 32 bit.&amp;nbsp;&amp;nbsp; The relative does not work either from ArcMap on the Windows 7 64 bit machine after we clicked on the relative path check box in the Map Document menu item.&amp;nbsp;&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 23:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758074#M20110</guid>
      <dc:creator>DavidStreet1</dc:creator>
      <dc:date>2012-04-05T23:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Path not working in ArcMap and ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758075#M20111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David, do you have Xtools pro 8.0 installed? If so, you'll need to upgrade to 8.1 or un-install for Win7 to work nice with Esri relative paths.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 15:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758075#M20111</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2012-04-10T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Path not working in ArcMap and ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758076#M20112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also having this problem.&amp;nbsp; My MXD is in my project's "root" folder, along with the 4 file geodatabases that it references.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The MXD is rather complex: 14 data frames, about 90 feature layers and table views, and numerous layout elements.&amp;nbsp; There are no references to data outside of the root folder, and no shapefiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After copying the entire project (the root folder) to a new location (e.g. "My Documents" on the C: drive), the paths all reflect the correct new location..... HOWEVER.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I disconnect from my work network (by disabling wireless) and open the MXD using a "borrowed" Advanced Desktop license, then the source paths for several (not all) data frames are broken.&amp;nbsp; I can't find a unique common trait among the data frames with broken layer sources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another observation:&amp;nbsp; If I reconnect the wireless and reopen the same MXD (without having saved it with the broken paths), the sources are fine.&amp;nbsp; If I stay working offline, the broken sources sources can all be fixed by manually reconnecting one layer to its datasource, BUT... if I save the "fixed" MXD, close it, and then open it again, the same sources are broken *again*.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what else might be befuddling the relative paths in this case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 21:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-path-not-working-in-arcmap-and-arcobjects/m-p/758076#M20112</guid>
      <dc:creator>KerryAlley</dc:creator>
      <dc:date>2014-02-24T21:41:27Z</dc:date>
    </item>
  </channel>
</rss>

