<?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: Load all layers in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1159878#M7990</link>
    <description>&lt;LI-CODE lang="c"&gt;QueuedTask.Run(() =&amp;gt; {
  var graphics_layers = MapView.Active.Map.GetLayersAsFlattenedList()
                         .OfType&amp;lt;GraphicsLayer&amp;gt;().ToList();
 var graphics_layer_with_sel = graphics_layers
           .Where(gl =&amp;gt; gl.GetSelectedElements().Count &amp;gt; 0).ToList();

 var feat_layers = MapView.Active.Map.GetLayersAsFlattenedList()
                             .OfType&amp;lt;BasicFeatureLayer&amp;gt;().ToList();
 var feat_layer_with_sel = feat_layers
         .Where(fl =&amp;gt; fl.GetSelection().GetCount() &amp;gt; 0).ToList();&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 31 Mar 2022 14:20:59 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2022-03-31T14:20:59Z</dc:date>
    <item>
      <title>Load all layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1159818#M7989</link>
      <description>&lt;P&gt;Good day,&lt;BR /&gt;is there any way to load all the layers in which an element is selected? I would like to load them into the list?&lt;BR /&gt;All I found was that I loaded only the first layer or the layer I searched for by name.&lt;BR /&gt;I will be happy for any advice.&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1159818#M7989</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-03-31T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load all layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1159878#M7990</link>
      <description>&lt;LI-CODE lang="c"&gt;QueuedTask.Run(() =&amp;gt; {
  var graphics_layers = MapView.Active.Map.GetLayersAsFlattenedList()
                         .OfType&amp;lt;GraphicsLayer&amp;gt;().ToList();
 var graphics_layer_with_sel = graphics_layers
           .Where(gl =&amp;gt; gl.GetSelectedElements().Count &amp;gt; 0).ToList();

 var feat_layers = MapView.Active.Map.GetLayersAsFlattenedList()
                             .OfType&amp;lt;BasicFeatureLayer&amp;gt;().ToList();
 var feat_layer_with_sel = feat_layers
         .Where(fl =&amp;gt; fl.GetSelection().GetCount() &amp;gt; 0).ToList();&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 14:20:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1159878#M7990</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-03-31T14:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load all layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1160180#M7993</link>
      <description>&lt;P&gt;That's exactly it, thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 06:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/load-all-layers/m-p/1160180#M7993</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-04-01T06:16:47Z</dc:date>
    </item>
  </channel>
</rss>

