<?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: Table Frames in ArcGIS Pro layout in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412106#M70378</link>
    <description>&lt;P&gt;Was your example derived from&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=8772f61319584882bb697ba003030636" target="_blank"&gt;ArcGIS Pro 2.5 CIM Samples V1 - Overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in the section for modifying tableframe objects? or was it examples in the cim folder, for example...&lt;/P&gt;&lt;P&gt;C:\...install path ...\Resources\ArcPy\arcpy\cim\CIMLayout.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 07:48:43 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-04-19T07:48:43Z</dc:date>
    <item>
      <title>Table Frames in ArcGIS Pro layout</title>
      <link>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412092#M70375</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a new Table Frame or update the existing one. For the caseof creating a Table Frame using CIM the project immideatly shuts down. I tried the following code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject("current")
lyt = p.listLayouts("Layout")[0]
lyt_cim = lyt.getDefinition("V3")

tf = arcpy.cim.CreateCIMObjectFromClassName("CIMTableFrame", "V3")
tf.anchor = "BottomRightCorner"

lyt_cim.elements.append(tf)
lyt.setDefinition(lyt_cim)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Updating the existing Table Frame i tried to set the table as fields like following code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject("current")
m = p.listMaps("Map")[0]
table = m.addDataFromPath(r"path")

lyt = p.listLayouts("Layout")[0]
lyt_cim = lyt.getDefinition("V3")

for elm in lyt_cim.elements:
    if elm == "Table Frame":
        elm.fields = table
lyt.setDefinition(lyt_cim)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why this isnt working?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 05:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412092#M70375</guid>
      <dc:creator>AnsgarG</dc:creator>
      <dc:date>2024-04-19T05:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table Frames in ArcGIS Pro layout</title>
      <link>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412106#M70378</link>
      <description>&lt;P&gt;Was your example derived from&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=8772f61319584882bb697ba003030636" target="_blank"&gt;ArcGIS Pro 2.5 CIM Samples V1 - Overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in the section for modifying tableframe objects? or was it examples in the cim folder, for example...&lt;/P&gt;&lt;P&gt;C:\...install path ...\Resources\ArcPy\arcpy\cim\CIMLayout.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 07:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412106#M70378</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-04-19T07:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Frames in ArcGIS Pro layout</title>
      <link>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412111#M70379</link>
      <description>&lt;P&gt;I derived it, or rather i tried the same approach they have shown with their samples.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 08:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1412111#M70379</guid>
      <dc:creator>AnsgarG</dc:creator>
      <dc:date>2024-04-19T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Frames in ArcGIS Pro layout</title>
      <link>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1414039#M70428</link>
      <description>&lt;P&gt;Is it maybe because of missing table frame commands for the CIM Table Frame variable?&lt;/P&gt;&lt;P&gt;But which of these i have to set?&lt;BR /&gt;&lt;A title="CIMTableFrame Class Properties" href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic17051.html" target="_self"&gt;CIMTableFrame Class Properties&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 11:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-frames-in-arcgis-pro-layout/m-p/1414039#M70428</guid>
      <dc:creator>AnsgarG</dc:creator>
      <dc:date>2024-04-23T11:11:58Z</dc:date>
    </item>
  </channel>
</rss>

