<?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 paths in ArcScene 9.3/9.3.1 document are broken if opened programmatically in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-paths-in-arcscene-9-3-9-3-1-document-are/m-p/382325#M10129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I open ArcScene document with relative paths programmatically from ArcMap, all those paths are broken. The location in source tab for broken layers is set to some different path like "C:\Windows\System32" or "C:\Windows".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the code sample I use to open document. Both ArcMap and ArcScene projects are located in "C:\test" and so are files added to ArcScene doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Sub test_relpaths()
&amp;nbsp; Dim pDoc As IDocument
&amp;nbsp; Set pDoc = New sxDocument
&amp;nbsp; Dim iApp As IApplication
&amp;nbsp; Set iApp = pDoc.Parent
&amp;nbsp; iApp.OpenDocument ("C:\test\test_relpaths.sxd")
End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use similar code to open ArcMap doc from ArcScene, everything is fine, relative links are kept:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Sub test_relpaths()
&amp;nbsp; Dim pDoc As IDocument
&amp;nbsp; Set pDoc = New mxDocument
&amp;nbsp; Dim iApp As IApplication
&amp;nbsp; Set iApp = pDoc.Parent
&amp;nbsp; iApp.OpenDocument ("C:\test\test_relpaths.mxd")
End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please help me to fix this issue or tell if it's a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2012 10:06:04 GMT</pubDate>
    <dc:creator>VladislavSaprygin</dc:creator>
    <dc:date>2012-03-16T10:06:04Z</dc:date>
    <item>
      <title>Relative paths in ArcScene 9.3/9.3.1 document are broken if opened programmatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-paths-in-arcscene-9-3-9-3-1-document-are/m-p/382325#M10129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I open ArcScene document with relative paths programmatically from ArcMap, all those paths are broken. The location in source tab for broken layers is set to some different path like "C:\Windows\System32" or "C:\Windows".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the code sample I use to open document. Both ArcMap and ArcScene projects are located in "C:\test" and so are files added to ArcScene doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Sub test_relpaths()
&amp;nbsp; Dim pDoc As IDocument
&amp;nbsp; Set pDoc = New sxDocument
&amp;nbsp; Dim iApp As IApplication
&amp;nbsp; Set iApp = pDoc.Parent
&amp;nbsp; iApp.OpenDocument ("C:\test\test_relpaths.sxd")
End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use similar code to open ArcMap doc from ArcScene, everything is fine, relative links are kept:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Sub test_relpaths()
&amp;nbsp; Dim pDoc As IDocument
&amp;nbsp; Set pDoc = New mxDocument
&amp;nbsp; Dim iApp As IApplication
&amp;nbsp; Set iApp = pDoc.Parent
&amp;nbsp; iApp.OpenDocument ("C:\test\test_relpaths.mxd")
End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please help me to fix this issue or tell if it's a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 10:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-paths-in-arcscene-9-3-9-3-1-document-are/m-p/382325#M10129</guid>
      <dc:creator>VladislavSaprygin</dc:creator>
      <dc:date>2012-03-16T10:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Relative paths in ArcScene 9.3/9.3.1 document are broken if opened programmatical</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/relative-paths-in-arcscene-9-3-9-3-1-document-are/m-p/382326#M10130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Couldn't find how to edit my post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It also fails in ArcGIS 10 SP3, seems like a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 07:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/relative-paths-in-arcscene-9-3-9-3-1-document-are/m-p/382326#M10130</guid>
      <dc:creator>VladislavSaprygin</dc:creator>
      <dc:date>2012-03-19T07:36:44Z</dc:date>
    </item>
  </channel>
</rss>

