<?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 List Selected Layers from ArcGIS Pro Map with ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1370874#M69680</link>
    <description>&lt;P&gt;Hi folks&lt;/P&gt;&lt;P&gt;Using ArcPy I would like to get a list of the&amp;nbsp;&lt;EM&gt;selected&amp;nbsp;&lt;/EM&gt;layers from the contents of the active ArcGIS Pro Map.&lt;/P&gt;&lt;P&gt;I don't see a property or method for this on Layer nor on cim_layer returned by&amp;nbsp;&lt;SPAN&gt;getDefinition on a layer object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems it was previously possible with pythonaddins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 09:29:28 GMT</pubDate>
    <dc:creator>KenBragg</dc:creator>
    <dc:date>2024-01-17T09:29:28Z</dc:date>
    <item>
      <title>List Selected Layers from ArcGIS Pro Map with ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1370874#M69680</link>
      <description>&lt;P&gt;Hi folks&lt;/P&gt;&lt;P&gt;Using ArcPy I would like to get a list of the&amp;nbsp;&lt;EM&gt;selected&amp;nbsp;&lt;/EM&gt;layers from the contents of the active ArcGIS Pro Map.&lt;/P&gt;&lt;P&gt;I don't see a property or method for this on Layer nor on cim_layer returned by&amp;nbsp;&lt;SPAN&gt;getDefinition on a layer object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems it was previously possible with pythonaddins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 09:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1370874#M69680</guid>
      <dc:creator>KenBragg</dc:creator>
      <dc:date>2024-01-17T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: List Selected Layers from ArcGIS Pro Map with ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1371374#M69685</link>
      <description>&lt;P&gt;I don't think this is possible.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcgis-pro-get-active-layer/td-p/1045183" target="_blank"&gt;ArcGIS Pro Get Active Layer - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe you can make a Python toolbox with a &lt;A href="https://pro.arcgis.com/en/pro-app/3.1/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm#GUID-9E1F9F7C-7327-469B-9748-B4B3DBF3736E" target="_self"&gt;multivalue parameter&lt;/A&gt; and the user can select the layers there?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 23:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1371374#M69685</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-01-17T23:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: List Selected Layers from ArcGIS Pro Map with ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1372805#M69699</link>
      <description>&lt;P&gt;Thanks, seems you must be right.&amp;nbsp;&lt;BR /&gt;Strange this isn't possible as there are lots of tools that work on "selected" layers but I guess these tools use other APIS.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 07:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-selected-layers-from-arcgis-pro-map-with/m-p/1372805#M69699</guid>
      <dc:creator>KenBragg</dc:creator>
      <dc:date>2024-01-22T07:17:56Z</dc:date>
    </item>
  </channel>
</rss>

