<?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 Save layer file of previous version in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/save-layer-file-of-previous-version/m-p/130138#M819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to save layer file of previous version using ArcObjects Java API from ArcGIS 10.2? I was using the below code, but no option available to specify the layer file version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="code"&gt;
&lt;P&gt;ILayerFile layerFile = new LayerFile();&lt;/P&gt;
&lt;P&gt;layerFile.esri_new(fileName);&lt;/P&gt;
&lt;P&gt;layerFile.replaceContents(layer);&lt;/P&gt;
&lt;P&gt;layerFile.save();&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 08:14:02 GMT</pubDate>
    <dc:creator>Ranga_Tolapi</dc:creator>
    <dc:date>2014-07-16T08:14:02Z</dc:date>
    <item>
      <title>Save layer file of previous version</title>
      <link>https://community.esri.com/t5/developers-questions/save-layer-file-of-previous-version/m-p/130138#M819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to save layer file of previous version using ArcObjects Java API from ArcGIS 10.2? I was using the below code, but no option available to specify the layer file version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="code"&gt;
&lt;P&gt;ILayerFile layerFile = new LayerFile();&lt;/P&gt;
&lt;P&gt;layerFile.esri_new(fileName);&lt;/P&gt;
&lt;P&gt;layerFile.replaceContents(layer);&lt;/P&gt;
&lt;P&gt;layerFile.save();&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 08:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/save-layer-file-of-previous-version/m-p/130138#M819</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2014-07-16T08:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Save layer file of previous version</title>
      <link>https://community.esri.com/t5/developers-questions/save-layer-file-of-previous-version/m-p/130139#M820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we go...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0070c0;"&gt;LayerFile layerFile = new LayerFile();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0070c0;"&gt;layerFile.esri_new(fileName);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0070c0;"&gt;layerFile.replaceContents(layer);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #0070c0;"&gt;layerFile.setDocumentVersion(esriArcGISVersion.&lt;/SPAN&gt;&lt;STRONG style="color: red;"&gt;esriArcGISVersion93&lt;/STRONG&gt;&lt;SPAN style="color: #0070c0;"&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0070c0;"&gt;layerFile.save();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When saving a layer to a previous version, keep in mind that older versions of ArcGIS may be unable to access newer data sources in the current release. For example, a layer that points to an ArcGIS 10.2.2 geodatabase will not work in earlier versions of ArcGIS.&lt;/P&gt;&lt;P&gt;Source: &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000013000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000013000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 11:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/save-layer-file-of-previous-version/m-p/130139#M820</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2014-07-21T11:03:38Z</dc:date>
    </item>
  </channel>
</rss>

