<?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 Add enable/disable edit/selection method to Layer Class in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idi-p/1314199</link>
    <description>&lt;P&gt;In Pro, I can&amp;nbsp;enable/disable editing/selection of specific layers&amp;nbsp; via the &lt;STRONG&gt;List by Editing&lt;/STRONG&gt; tab and the &lt;STRONG&gt;List by Selection&lt;/STRONG&gt; tab.&lt;/P&gt;&lt;P&gt;I would like to be able to be able to do the same using arcpy.&lt;/P&gt;&lt;P&gt;Example use case:&lt;/P&gt;&lt;P&gt;I have a map with specific layers that I want to protect the source data from being inadvertently modified during an edit session.&lt;/P&gt;&lt;P&gt;I would run a script tool to disable editing and or selection for specific layers in my map.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 17:57:42 GMT</pubDate>
    <dc:creator>macbeer</dc:creator>
    <dc:date>2023-08-01T17:57:42Z</dc:date>
    <item>
      <title>Add enable/disable edit/selection method to Layer Class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idi-p/1314199</link>
      <description>&lt;P&gt;In Pro, I can&amp;nbsp;enable/disable editing/selection of specific layers&amp;nbsp; via the &lt;STRONG&gt;List by Editing&lt;/STRONG&gt; tab and the &lt;STRONG&gt;List by Selection&lt;/STRONG&gt; tab.&lt;/P&gt;&lt;P&gt;I would like to be able to be able to do the same using arcpy.&lt;/P&gt;&lt;P&gt;Example use case:&lt;/P&gt;&lt;P&gt;I have a map with specific layers that I want to protect the source data from being inadvertently modified during an edit session.&lt;/P&gt;&lt;P&gt;I would run a script tool to disable editing and or selection for specific layers in my map.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idi-p/1314199</guid>
      <dc:creator>macbeer</dc:creator>
      <dc:date>2023-08-01T17:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add enable/disable edit/selection method to Layer Class - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idc-p/1314290#M25831</link>
      <description>&lt;P&gt;This is something that can be done using &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_self"&gt;Python CIM Access&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject('current')
m = p.listMaps()[0]
l = m.listLayers('Cities')[0]

l_cim = l.getDefinition('V3')         #Get the layer's CIM definition
l_cim.featureTable.editable = False   #Modify the editable state
l.setDefinition(l_cim)                #Push the CIM changes back to the layer&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idc-p/1314290#M25831</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2023-08-01T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add enable/disable edit/selection method to Layer Class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idc-p/1314293#M25832</link>
      <description>&lt;P&gt;Awesome, thanks for the example.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-enable-disable-edit-selection-method-to-layer/idc-p/1314293#M25832</guid>
      <dc:creator>macbeer</dc:creator>
      <dc:date>2023-08-01T20:07:23Z</dc:date>
    </item>
  </channel>
</rss>

