<?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: CalculateGeometryAttributes missing 6th positional argument in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384417#M30291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you were doing it via code, and were using multiple properties, check your list of lists, you may be missing brackets&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;[[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Left"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"EXTENT_MIN_X"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;], [&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Bottom"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"EXTENT_MIN_Y"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;]]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2020 22:29:39 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-03-05T22:29:39Z</dc:date>
    <item>
      <title>CalculateGeometryAttributes missing 6th positional argument</title>
      <link>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384415#M30289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I attempt to run the CalculateGeometryAttributes in a Python window in ArcGIS Pro so I can add the last positional argument I get an error message stating:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TypeError: CalculateGeometryAttributes() takes from 0 to 5 positional arguments but 6 were given&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;According to the documentation at&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-geometry-attributes.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-geometry-attributes.htm"&gt;Calculate Geometry Attributes—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;the syntax for this tool is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; font-size: 17px; margin-bottom: 1.55rem;"&gt;CalculateGeometryAttributes(in_features, geometry_property, {length_unit}, {area_unit},{coordinate_system}, {coordinate_format})&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; font-size: 17px; margin-bottom: 1.55rem;"&gt;&lt;BR /&gt;This shows 6 positional arguments but when I attempt to add a value for {coordinate_format} the tool won't accept it. Did ESRI change the syntax and remove this feature or is this a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 21:14:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384415#M30289</guid>
      <dc:creator>CharlesHardy1</dc:creator>
      <dc:date>2020-03-05T21:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: CalculateGeometryAttributes missing 6th positional argument</title>
      <link>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384416#M30290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of Pro are you running?&amp;nbsp; I just tested on Pro 2.5, and I don't have any issues.&amp;nbsp; If I pass 7 arguments, instead of 6, I can generate a similar TypeError:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;TypeError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; CalculateGeometryAttributes&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; takes &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; to &lt;SPAN class="number token"&gt;6&lt;/SPAN&gt; positional arguments but &lt;SPAN class="number token"&gt;7&lt;/SPAN&gt; were given‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the following show on your machine:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; CalculateGeometryAttributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__code__&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;co_argcount
&lt;SPAN class="number token"&gt;6&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384416#M30290</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T17:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: CalculateGeometryAttributes missing 6th positional argument</title>
      <link>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384417#M30291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you were doing it via code, and were using multiple properties, check your list of lists, you may be missing brackets&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;[[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Left"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"EXTENT_MIN_X"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;], [&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Bottom"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"EXTENT_MIN_Y"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;]]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 22:29:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384417#M30291</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-05T22:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: CalculateGeometryAttributes missing 6th positional argument</title>
      <link>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384418#M30292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help.&amp;nbsp; I think the issue may be I'm not on Pro 2.5 yet.&amp;nbsp; My organization is still running Pro 2.4.3.&amp;nbsp; I took a closer look and it appears that I'm still using version 2.4 of arcpy which uses CalculateGeometryAttributes_managment() with only 5 arguments.&amp;nbsp; CalculateGeometryAttributes() is not available in arcpy 2.4.&amp;nbsp; I assume that when I upgrade to Pro 2.5 my arcpy module will change to version 2.5 with the new capabilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.management.CalculateGeometryAttributes.__code__.co_argcount&lt;BR /&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still on a learning how to use Python directly (either in Pro or in a Jupyter Notebook or Spyder).&amp;nbsp; It's a steep curve but I'm starting to figure it all out.&lt;/P&gt;&lt;PRE class=""&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculategeometryattributes-missing-6th-positional/m-p/384418#M30292</guid>
      <dc:creator>CharlesHardy1</dc:creator>
      <dc:date>2020-03-06T16:54:36Z</dc:date>
    </item>
  </channel>
</rss>

