<?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 Calculate Geometry Attributes — Automatically generate field name if left blank in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/calculate-geometry-attributes-automatically/idi-p/1386594</link>
    <description>&lt;DIV&gt;&lt;I&gt;ArcGIS Pro 3.2.2; File Geodatabase; Line Feature Class&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-geometry-attributes.htm" target="_self"&gt;Calculate Geometry Attributes (Data Management)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can select an existing field &lt;STRONG&gt;or&lt;/STRONG&gt; &lt;STRONG&gt;&lt;U&gt;provide&lt;/U&gt; a new field name.&lt;/STRONG&gt; If a new field name is provided, the field type is determined by the type of values that are written to the field. Count attributes are written to long integer fields; area, length, and x-, y-, z-coordinate, and m-value attributes are written to double fields; and coordinate notations such as Degrees Minutes Seconds or MGRS are written to text fields.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I use Calculate Geometry Attributes to create a new field, I get an error if the field name is left blank. A temporary field called "#" is created but not populated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1708921368980.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95782i637016BFB49DB2EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1708921368980.png" alt="Bud_0-1708921368980.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;PRE&gt; Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 366, in &amp;lt;module&amp;gt;&lt;BR /&gt;CalculateGeometry(fc, properties, lUnit, aUnit, cs, cformat)&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 177, in CalculateGeometry&lt;BR /&gt;fidxes = [ucur.fields.index(cprop[0]) for cprop in properties]&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 177, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;fidxes = [ucur.fields.index(cprop[0]) for cprop in properties]&lt;BR /&gt;RuntimeError: Cannot find field '#'&lt;/PRE&gt;&lt;DIV&gt;I suppose an error of some sort might be expected. It seems like the tool was expecting the new field name parameter to be entered by the user.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;But I think it would be better if the tool could automatically generate field names if the field name parameter is left blank. To save the user from manually typing in a field name for multiple fields. It would also have the benefit of creating standardized field names.&lt;/DIV&gt;</description>
    <pubDate>Mon, 26 Feb 2024 18:29:18 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-02-26T18:29:18Z</dc:date>
    <item>
      <title>Calculate Geometry Attributes — Automatically generate field name if left blank</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/calculate-geometry-attributes-automatically/idi-p/1386594</link>
      <description>&lt;DIV&gt;&lt;I&gt;ArcGIS Pro 3.2.2; File Geodatabase; Line Feature Class&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-geometry-attributes.htm" target="_self"&gt;Calculate Geometry Attributes (Data Management)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can select an existing field &lt;STRONG&gt;or&lt;/STRONG&gt; &lt;STRONG&gt;&lt;U&gt;provide&lt;/U&gt; a new field name.&lt;/STRONG&gt; If a new field name is provided, the field type is determined by the type of values that are written to the field. Count attributes are written to long integer fields; area, length, and x-, y-, z-coordinate, and m-value attributes are written to double fields; and coordinate notations such as Degrees Minutes Seconds or MGRS are written to text fields.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I use Calculate Geometry Attributes to create a new field, I get an error if the field name is left blank. A temporary field called "#" is created but not populated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1708921368980.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95782i637016BFB49DB2EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1708921368980.png" alt="Bud_0-1708921368980.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;PRE&gt; Traceback (most recent call last):&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 366, in &amp;lt;module&amp;gt;&lt;BR /&gt;CalculateGeometry(fc, properties, lUnit, aUnit, cs, cformat)&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 177, in CalculateGeometry&lt;BR /&gt;fidxes = [ucur.fields.index(cprop[0]) for cprop in properties]&lt;BR /&gt;File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 177, in &amp;lt;listcomp&amp;gt;&lt;BR /&gt;fidxes = [ucur.fields.index(cprop[0]) for cprop in properties]&lt;BR /&gt;RuntimeError: Cannot find field '#'&lt;/PRE&gt;&lt;DIV&gt;I suppose an error of some sort might be expected. It seems like the tool was expecting the new field name parameter to be entered by the user.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;But I think it would be better if the tool could automatically generate field names if the field name parameter is left blank. To save the user from manually typing in a field name for multiple fields. It would also have the benefit of creating standardized field names.&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/calculate-geometry-attributes-automatically/idi-p/1386594</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-02-26T18:29:18Z</dc:date>
    </item>
  </channel>
</rss>

