<?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 Text Updates with Arcpy slow if text is in a group_element in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/text-updates-with-arcpy-slow-if-text-is-in-a-group/m-p/1618126#M96048</link>
    <description>&lt;P&gt;Hullo.&amp;nbsp; On the latest greatest ArcGISpro 3.5.&amp;nbsp; I have a project layout that has several text element in its title block that are updated with an Arcpy script.&amp;nbsp; If the text elements are grouped witht he rest of the title block, it takes about 2 seconds to update each element.&amp;nbsp; If they are not grouped at all, the update happens neatly instantly.&amp;nbsp; I would like them grouped as I need to move the title block around to accommodate different plot sizes.&amp;nbsp; So this is slow...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansRasmussen_0-1748036147943.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133213i57062FE06E2FB104/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HansRasmussen_0-1748036147943.png" alt="HansRasmussen_0-1748036147943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is fast....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansRasmussen_1-1748036180490.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133214i603AA1601E740EF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HansRasmussen_1-1748036180490.png" alt="HansRasmussen_1-1748036180490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the code that populates the text elements looks like......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;text_values = {&lt;BR /&gt;"CP": f"CP: {cp}",&lt;BR /&gt;"BCGS": f"BCGS: {mapsheet}",&lt;BR /&gt;"District": f"Resource District: {district}",&lt;BR /&gt;"Region": f"Resource Region: {region}",&lt;BR /&gt;"TSA": f"TSA: {tsa}",&lt;BR /&gt;"PSYU": f"PSYU: {psyunum} - {psyu}",&lt;BR /&gt;"FIZ": f"Forest Inventory Zone: {fiz}",&lt;BR /&gt;"Latitude": f"Latitude: {printlat}",&lt;BR /&gt;"Longitude": f"Longitude: {printlong}",&lt;BR /&gt;"Albers": "Albers: " + str(utm_East) + " " + str(utm_North),&lt;BR /&gt;"Declination": f"Decl: {declfin}",&lt;BR /&gt;"Date Drawn": f"Date Drawn: {drawndate}",&lt;BR /&gt;"Stampdate": "Date Stamped: " ,&lt;BR /&gt;"Gross": grosslist + '\n\r' + "Total" + "{:21.1f} {:16.1f}".format(nartotarea, grossarearnd),&lt;BR /&gt;"NAR": narlist,&lt;BR /&gt;"SS": sslist + '\n\r' + " "&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;text_elements = [elm for elm in l.listElements("TEXT_ELEMENT") if elm.name in text_values]&lt;/P&gt;&lt;P&gt;for elm in text_elements:&lt;BR /&gt;elm.text = text_values[elm.name]&lt;BR /&gt;logging(elm.name)&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 21:39:10 GMT</pubDate>
    <dc:creator>HansRasmussen</dc:creator>
    <dc:date>2025-05-23T21:39:10Z</dc:date>
    <item>
      <title>Text Updates with Arcpy slow if text is in a group_element</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/text-updates-with-arcpy-slow-if-text-is-in-a-group/m-p/1618126#M96048</link>
      <description>&lt;P&gt;Hullo.&amp;nbsp; On the latest greatest ArcGISpro 3.5.&amp;nbsp; I have a project layout that has several text element in its title block that are updated with an Arcpy script.&amp;nbsp; If the text elements are grouped witht he rest of the title block, it takes about 2 seconds to update each element.&amp;nbsp; If they are not grouped at all, the update happens neatly instantly.&amp;nbsp; I would like them grouped as I need to move the title block around to accommodate different plot sizes.&amp;nbsp; So this is slow...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansRasmussen_0-1748036147943.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133213i57062FE06E2FB104/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HansRasmussen_0-1748036147943.png" alt="HansRasmussen_0-1748036147943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is fast....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HansRasmussen_1-1748036180490.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133214i603AA1601E740EF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HansRasmussen_1-1748036180490.png" alt="HansRasmussen_1-1748036180490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the code that populates the text elements looks like......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;text_values = {&lt;BR /&gt;"CP": f"CP: {cp}",&lt;BR /&gt;"BCGS": f"BCGS: {mapsheet}",&lt;BR /&gt;"District": f"Resource District: {district}",&lt;BR /&gt;"Region": f"Resource Region: {region}",&lt;BR /&gt;"TSA": f"TSA: {tsa}",&lt;BR /&gt;"PSYU": f"PSYU: {psyunum} - {psyu}",&lt;BR /&gt;"FIZ": f"Forest Inventory Zone: {fiz}",&lt;BR /&gt;"Latitude": f"Latitude: {printlat}",&lt;BR /&gt;"Longitude": f"Longitude: {printlong}",&lt;BR /&gt;"Albers": "Albers: " + str(utm_East) + " " + str(utm_North),&lt;BR /&gt;"Declination": f"Decl: {declfin}",&lt;BR /&gt;"Date Drawn": f"Date Drawn: {drawndate}",&lt;BR /&gt;"Stampdate": "Date Stamped: " ,&lt;BR /&gt;"Gross": grosslist + '\n\r' + "Total" + "{:21.1f} {:16.1f}".format(nartotarea, grossarearnd),&lt;BR /&gt;"NAR": narlist,&lt;BR /&gt;"SS": sslist + '\n\r' + " "&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;text_elements = [elm for elm in l.listElements("TEXT_ELEMENT") if elm.name in text_values]&lt;/P&gt;&lt;P&gt;for elm in text_elements:&lt;BR /&gt;elm.text = text_values[elm.name]&lt;BR /&gt;logging(elm.name)&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 21:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/text-updates-with-arcpy-slow-if-text-is-in-a-group/m-p/1618126#M96048</guid>
      <dc:creator>HansRasmussen</dc:creator>
      <dc:date>2025-05-23T21:39:10Z</dc:date>
    </item>
  </channel>
</rss>

