<?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 Enable or Disable Popups in Python in ARCGIS Pro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/enable-or-disable-popups-in-python-in-arcgis-pro/m-p/1008357#M59242</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there any way to enable/disable popups in Arcpy for pro?&lt;/P&gt;&lt;P&gt;I am using ArcPro 2.4.0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a number of layers in a map that I am preparing for sharing into Portal and we wish to turn off popups for some and enable them for others.&lt;/P&gt;&lt;P&gt;I am using .LRYX files to style the features and popups are disabled in the layer file ( "htmlPopupEnabled" : false, &amp;amp;&amp;nbsp; "showPopups" : false, ) but it does not seem to be reading the layer file for this setting ( I am running Apply Symbology from Layer)&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 02:42:59 GMT</pubDate>
    <dc:creator>LeandraGordon</dc:creator>
    <dc:date>2020-12-10T02:42:59Z</dc:date>
    <item>
      <title>Enable or Disable Popups in Python in ARCGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/enable-or-disable-popups-in-python-in-arcgis-pro/m-p/1008357#M59242</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there any way to enable/disable popups in Arcpy for pro?&lt;/P&gt;&lt;P&gt;I am using ArcPro 2.4.0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a number of layers in a map that I am preparing for sharing into Portal and we wish to turn off popups for some and enable them for others.&lt;/P&gt;&lt;P&gt;I am using .LRYX files to style the features and popups are disabled in the layer file ( "htmlPopupEnabled" : false, &amp;amp;&amp;nbsp; "showPopups" : false, ) but it does not seem to be reading the layer file for this setting ( I am running Apply Symbology from Layer)&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 02:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-or-disable-popups-in-python-in-arcgis-pro/m-p/1008357#M59242</guid>
      <dc:creator>LeandraGordon</dc:creator>
      <dc:date>2020-12-10T02:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enable or Disable Popups in Python in ARCGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/enable-or-disable-popups-in-python-in-arcgis-pro/m-p/1048188#M60820</link>
      <description>&lt;P&gt;You can enable/disable pop ups using python and the ArcPro CIM module. The basic code is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject('current')
m = p.listMaps('Map')[0]
l = m.listLayers('phi_clip')[0]
l_cim = l.getDefinition('V2')
l_cim.showPopups = False
l.setDefinition(l_cim)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: phi_clip is a layer name in my project, obviously change it to your requirements&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 16:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-or-disable-popups-in-python-in-arcgis-pro/m-p/1048188#M60820</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-04-16T16:06:15Z</dc:date>
    </item>
  </channel>
</rss>

