<?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 How can you programmatically save a layer file for a wms layer? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-you-programmatically-save-a-layer-file-for/m-p/1107729#M7229</link>
    <description>&lt;P&gt;I have a wms layer in the map that I want to programmatically save as a layer file.&amp;nbsp; Using&lt;/P&gt;&lt;P&gt;Geoprocessing.ExecuteToolAsync("management.SaveToLayerFile", args);&lt;/P&gt;&lt;P&gt;doesn't seem to work with wms layers.&amp;nbsp; As an experiment, within ArcGIS Pro I tried the corresponding Save to Layer File tool in the Data Management toolbox and it ignores the wms layer, so I'm guessing that is why my code doesn't work.&amp;nbsp; However, within Pro you can right click on the wms layer in the TOC and select Sharing &amp;gt; Save As Layer File and this &lt;U&gt;does&lt;/U&gt; work, so I'm wondering if there is some way to access this programmatically.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 22:16:35 GMT</pubDate>
    <dc:creator>KarenMeinstein</dc:creator>
    <dc:date>2021-10-14T22:16:35Z</dc:date>
    <item>
      <title>How can you programmatically save a layer file for a wms layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-you-programmatically-save-a-layer-file-for/m-p/1107729#M7229</link>
      <description>&lt;P&gt;I have a wms layer in the map that I want to programmatically save as a layer file.&amp;nbsp; Using&lt;/P&gt;&lt;P&gt;Geoprocessing.ExecuteToolAsync("management.SaveToLayerFile", args);&lt;/P&gt;&lt;P&gt;doesn't seem to work with wms layers.&amp;nbsp; As an experiment, within ArcGIS Pro I tried the corresponding Save to Layer File tool in the Data Management toolbox and it ignores the wms layer, so I'm guessing that is why my code doesn't work.&amp;nbsp; However, within Pro you can right click on the wms layer in the TOC and select Sharing &amp;gt; Save As Layer File and this &lt;U&gt;does&lt;/U&gt; work, so I'm wondering if there is some way to access this programmatically.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 22:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-you-programmatically-save-a-layer-file-for/m-p/1107729#M7229</guid>
      <dc:creator>KarenMeinstein</dc:creator>
      <dc:date>2021-10-14T22:16:35Z</dc:date>
    </item>
  </channel>
</rss>

