<?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 Re: Saving a layer file with a relative path in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-a-layer-file-with-a-relative-path/m-p/42555#M1104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could go about this in a couple of different ways. One option is to set the relative base via &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/RelativeBase_Property/00120000038n000000/"&gt;IDataLayer.RelativeBase&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is to use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000070000000.htm"&gt;Save To Layer File&lt;/A&gt;&lt;SPAN&gt; gp tool, it has a relitive path option. Here are some code examples on &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_run_a_geoprocessing_tool/0001000003rr000000/"&gt;how to run a gp tool&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2011 17:18:54 GMT</pubDate>
    <dc:creator>JohnHauck</dc:creator>
    <dc:date>2011-07-26T17:18:54Z</dc:date>
    <item>
      <title>Saving a layer file with a relative path</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-a-layer-file-with-a-relative-path/m-p/42554#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is someone out there able to show me how I go about saving a shapefile in ArcMap as a layer file (.lyr) that has a relative path in vba? A bit of code would be really appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea is after I have run my code and output all the layer files I can move the shapefiles and their associated layer files from a local drive which I use for processing my data to another location where other people can use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 06:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/saving-a-layer-file-with-a-relative-path/m-p/42554#M1103</guid>
      <dc:creator>MPickering</dc:creator>
      <dc:date>2011-07-25T06:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a layer file with a relative path</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/saving-a-layer-file-with-a-relative-path/m-p/42555#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could go about this in a couple of different ways. One option is to set the relative base via &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/RelativeBase_Property/00120000038n000000/"&gt;IDataLayer.RelativeBase&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is to use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000070000000.htm"&gt;Save To Layer File&lt;/A&gt;&lt;SPAN&gt; gp tool, it has a relitive path option. Here are some code examples on &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_run_a_geoprocessing_tool/0001000003rr000000/"&gt;how to run a gp tool&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 17:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/saving-a-layer-file-with-a-relative-path/m-p/42555#M1104</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2011-07-26T17:18:54Z</dc:date>
    </item>
  </channel>
</rss>

