<?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: Listing open maps only in an ArcGIS Pro project using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1120163#M63061</link>
    <description>&lt;P&gt;Have you tried this? I would test it in Pro, but I'm all of a sudden getting Kernel Error, and none of my Notebooks are working... Apparently, It won't work in a stand-alone. You'd have to run it in a Pro Notebook or console.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject('CURRENT')
print(aprx.activeMap)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Taken from: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 22:22:10 GMT</pubDate>
    <dc:creator>JaredPilbeam2</dc:creator>
    <dc:date>2021-11-24T22:22:10Z</dc:date>
    <item>
      <title>Listing open maps only in an ArcGIS Pro project using Python</title>
      <link>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1118592#M63015</link>
      <description>&lt;P&gt;I'm creating a script to process all layers in an ArcGIS Pro project but would only like it to process maps that the user has open in the current project and not all maps associated with the project.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")
maps = aprx.listMaps()
for map in maps:
    layers = map.listLayers()
    for layer in layers:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If I was looking at data sources for example, the above code would process layers in all maps even if they aren't currently open.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I only process layers in open maps only?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 10:27:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1118592#M63015</guid>
      <dc:creator>MattHowe</dc:creator>
      <dc:date>2021-11-19T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Listing open maps only in an ArcGIS Pro project using Python</title>
      <link>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1118640#M63016</link>
      <description>&lt;P&gt;From&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/map-class.htm" target="_blank"&gt;Map—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't see something that would process only the open maps (eg.&amp;nbsp; isOpen or equivalent).&lt;/P&gt;&lt;P&gt;There is also nothing in the arcgis project class&lt;/P&gt;&lt;P&gt;This would be a good candidate for an Idea&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 14:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1118640#M63016</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-11-19T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Listing open maps only in an ArcGIS Pro project using Python</title>
      <link>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1120163#M63061</link>
      <description>&lt;P&gt;Have you tried this? I would test it in Pro, but I'm all of a sudden getting Kernel Error, and none of my Notebooks are working... Apparently, It won't work in a stand-alone. You'd have to run it in a Pro Notebook or console.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject('CURRENT')
print(aprx.activeMap)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Taken from: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 22:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1120163#M63061</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-11-24T22:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Listing open maps only in an ArcGIS Pro project using Python</title>
      <link>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1667685#M74937</link>
      <description>&lt;P&gt;I added an Idea for this:&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-ideas/arcpy-mp-map-and-layout-isopen/idi-p/1667684" target="_blank"&gt;https://community.esri.com/t5/python-ideas/arcpy-mp-map-and-layout-isopen/idi-p/1667684&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 21:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/listing-open-maps-only-in-an-arcgis-pro-project/m-p/1667685#M74937</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-11-20T21:01:45Z</dc:date>
    </item>
  </channel>
</rss>

