<?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>idea open/activate map with arcpy in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idi-p/1315407</link>
    <description>&lt;P&gt;A simple yet powerful method in ArcPy is missing: opening/activating an existing map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to add a new map (newMap = aprx.createMap("Map")) and it is also possible to get the (last) active maps (aprx = arcpy.mp.ArcGISProject("current") //active_map = aprx.activeMap).&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's missing is a method to not only replace the "activeMap" in the code, but also to open/activate that map, so that it is displayed in the map view window. To activate a map in the code it would need a method like "Mapname.activate()" which overwrites the previous"activeMap". Since normally the active map is the last used map in the map view window (the big part in the middle of the screen), the anticipated method "activate()" would also need to add that activated map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could think of many cases where this method could be used.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 15:05:32 GMT</pubDate>
    <dc:creator>nadja</dc:creator>
    <dc:date>2023-08-04T15:05:32Z</dc:date>
    <item>
      <title>open/activate map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idi-p/1315407</link>
      <description>&lt;P&gt;A simple yet powerful method in ArcPy is missing: opening/activating an existing map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to add a new map (newMap = aprx.createMap("Map")) and it is also possible to get the (last) active maps (aprx = arcpy.mp.ArcGISProject("current") //active_map = aprx.activeMap).&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's missing is a method to not only replace the "activeMap" in the code, but also to open/activate that map, so that it is displayed in the map view window. To activate a map in the code it would need a method like "Mapname.activate()" which overwrites the previous"activeMap". Since normally the active map is the last used map in the map view window (the big part in the middle of the screen), the anticipated method "activate()" would also need to add that activated map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could think of many cases where this method could be used.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 15:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idi-p/1315407</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2023-08-04T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: open/activate map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1315606#M25869</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/205210"&gt;@nadja&lt;/a&gt;&amp;nbsp;Have you tried:&lt;/P&gt;&lt;P&gt;Map.openView()?&amp;nbsp; It opens a view for the map objects AND activates it.&amp;nbsp; This works for Layout and Reports too.&lt;/P&gt;&lt;P&gt;We also have ArcGISProject.closeViews()&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 16:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1315606#M25869</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2023-08-04T16:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: open/activate map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1315610#M25870</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;no - thank you, that's exactly what I meant &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I leave the idea, in case anyone else has trouble finding the documentation...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 16:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1315610#M25870</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2023-08-04T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: open/activate map with arcpy - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1315621#M25871</link>
      <description>&lt;P&gt;Map.openView() was what needed.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 16:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1315621#M25871</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2023-08-04T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: open/activate map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1689157#M37752</link>
      <description>&lt;P&gt;No, this is not a solution to the original question:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;opening/activating an existing map&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Map.openView()&amp;nbsp;creates a new MapView of the map and opens it, not the existingone then leaving you with two of them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 23:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1689157#M37752</guid>
      <dc:creator>Pukawai</dc:creator>
      <dc:date>2026-03-06T23:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: open/activate map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1689180#M37753</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/796464"&gt;@Pukawai&lt;/a&gt;&amp;nbsp;The original author of this idea was happy with the solution so we marked it accordingly.&amp;nbsp; We also have ArcGISProject.closeViews() so you can close your views, then open the specific view using openView(). OpenView will automatically activate the view.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have NO way of referencing existing views because individual instances are not uniquely named.&amp;nbsp; Closing views and (re)opening ensures you get the active view you want.&lt;/P&gt;&lt;P&gt;At 3.7 we enhanced closeViews() to include a wildcard parameter so rather than closing all map views, for example, you can close views that only reference a specific map.&amp;nbsp; See:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcpy-mp-map-and-layout-isopen/idi-p/1667684" target="_blank"&gt;arcpy.mp Map and Layout isOpen - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The major focus of arcpy.mp is for ArcGIS Project automation, not application development.&amp;nbsp; There are many scenarios where the .Net SDK is a better solution for application development.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Jeff - arcpy.mp team&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 23:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1689180#M37753</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2026-03-06T23:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: open/activate map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1689196#M37757</link>
      <description>&lt;P&gt;Thank you, Jeff.&lt;/P&gt;&lt;P&gt;If closeViews() has that parameter, then that would be a workaround. Will just have to wait a couple months for it. I understand that the .net SDK is better for this kind of development as it was for ArcMap, but with Pro there's a such huge difference in the amount of time and effort require to get something workin, especially if it needs some sort of UI pane, so simple things like this and getting a list of selected layers in TOC seen high priority.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2026 01:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/open-activate-map-with-arcpy/idc-p/1689196#M37757</guid>
      <dc:creator>Pukawai</dc:creator>
      <dc:date>2026-03-07T01:02:38Z</dc:date>
    </item>
  </channel>
</rss>

