<?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: arcpy.management.AddGeometryAttributes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061983#M61243</link>
    <description>&lt;P&gt;Thanks Jayanta. Your suggestion works perfect!&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 19:33:54 GMT</pubDate>
    <dc:creator>cwh</dc:creator>
    <dc:date>2021-05-26T19:33:54Z</dc:date>
    <item>
      <title>arcpy.management.AddGeometryAttributes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061645#M61235</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using arcpy.management.AddGeometryAttributes to add 2 fields to feature classes (Acres and Hectares). I have to run the code twice, once for acres and once for hectares. I'm not sure if I'm reading the documentation incorrectly, but it kind of reads like I could have it create the acres and hectares fields by just running the code once.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cwh_0-1621999801340.png" style="width: 652px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14168iE9BD17764882BA66/image-dimensions/652x106?v=v2" width="652" height="106" role="button" title="cwh_0-1621999801340.png" alt="cwh_0-1621999801340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My confusion is in acres/hectares are specified in the Area_Unit parameter and if it's possible to pass in multiple strings to that parameter (i.e.&amp;nbsp;&lt;SPAN&gt;"Acres; Hectares") to have it create multiple fields in one go.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anybody know if this is possible, or if I'm just hoping it will do something it won't.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.7/tool-reference/data-management/add-geometry-attributes.htm" target="_blank"&gt;Add Geometry Attributes (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 03:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061645#M61235</guid>
      <dc:creator>cwh</dc:creator>
      <dc:date>2021-05-26T03:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.AddGeometryAttributes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061658#M61236</link>
      <description>&lt;P&gt;You can create a Python script for the following.&lt;/P&gt;&lt;P&gt;Please &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-field.htm#GUID-F00BCBBC-1469-487D-9CDF-6AAAD5015E57" target="_self"&gt;&lt;STRONG&gt;Add fields&lt;/STRONG&gt;&lt;/A&gt; for &lt;EM&gt;Area_Ac &lt;/EM&gt;and &lt;EM&gt;Area_Ha&lt;/EM&gt; as Float or Double (if not already created).&lt;/P&gt;&lt;P&gt;Then use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm#GUID-2E817E73-F1C8-42E3-9597-8BDEC11125E6" target="_self"&gt;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;for each field using the following expressions, as required&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression 1 (Area_Ac):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;!shape.area@acres!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression 2 (Area_Ha):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;!shape.area@hectares!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 06:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061658#M61236</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-05-26T06:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.management.AddGeometryAttributes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061983#M61243</link>
      <description>&lt;P&gt;Thanks Jayanta. Your suggestion works perfect!&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-management-addgeometryattributes/m-p/1061983#M61243</guid>
      <dc:creator>cwh</dc:creator>
      <dc:date>2021-05-26T19:33:54Z</dc:date>
    </item>
  </channel>
</rss>

