<?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 IsVisible property of CIMTableFrameField will only set to True in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/isvisible-property-of-cimtableframefield-will-only/m-p/1382949#M78865</link>
    <description>&lt;P&gt;When setting the isvisible property a table frame field using CIM, ArcPro will not honor False, only True. The Table Frame is referenced in the layout via a map. The layer in the map is a feature class in a file geodatabase.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Pro Version: 3.2.0&lt;BR /&gt;&lt;BR /&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")
mapTable = aprx.listMaps('Tables')[0]
mapTableLayout = aprx.listLayouts('CU Tables')[0]
otherTableElem = mapTableLayout.listElements("MAPSURROUND_ELEMENT", "otherTableFrame")[0]
otherTableCIM  = otherTableElem.getDefinition('V3')

if hasattr(otherTableCIM, "fields"):    
    fieldNames = [elm.name.lower() for elm in otherTableCIM.fields]
    if "acres" in fieldNames:
        for field in otherTableCIM.fields:
            if field.name.lower() == 'acres':
                field.isVisible == True # This will update the visibility. False will not have an effect.
otherTableElem.setDefinition(otherTableCIM)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 17:42:53 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2024-02-15T17:42:53Z</dc:date>
    <item>
      <title>IsVisible property of CIMTableFrameField will only set to True</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/isvisible-property-of-cimtableframefield-will-only/m-p/1382949#M78865</link>
      <description>&lt;P&gt;When setting the isvisible property a table frame field using CIM, ArcPro will not honor False, only True. The Table Frame is referenced in the layout via a map. The layer in the map is a feature class in a file geodatabase.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Pro Version: 3.2.0&lt;BR /&gt;&lt;BR /&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")
mapTable = aprx.listMaps('Tables')[0]
mapTableLayout = aprx.listLayouts('CU Tables')[0]
otherTableElem = mapTableLayout.listElements("MAPSURROUND_ELEMENT", "otherTableFrame")[0]
otherTableCIM  = otherTableElem.getDefinition('V3')

if hasattr(otherTableCIM, "fields"):    
    fieldNames = [elm.name.lower() for elm in otherTableCIM.fields]
    if "acres" in fieldNames:
        for field in otherTableCIM.fields:
            if field.name.lower() == 'acres':
                field.isVisible == True # This will update the visibility. False will not have an effect.
otherTableElem.setDefinition(otherTableCIM)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/isvisible-property-of-cimtableframefield-will-only/m-p/1382949#M78865</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2024-02-15T17:42:53Z</dc:date>
    </item>
  </channel>
</rss>

