Relative Path not working in ArcMap and ArcObjects

Discussion created by davidst2000 on Apr 5, 2012
Latest reply on Feb 24, 2014 by kalley

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.

Also, when I run ArcMap 10.0 on a Windows XP machine the relative paths work correctly.


PS I posted this question on ArcGIS Desktop forum. I didn't know which one would be more appropriate.