<?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: Calculate Field Management (x,y) using Python in ArcGIS 10 in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculate-field-management-x-y-using-python-in/m-p/465210#M15642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Edward,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to replace PYTHON by PYTHON_9.3 in the expression type of CalculateField_management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See sample below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.CalculateField_management(BT_BNG, "Eastings", "!Shape.firstPoint.X!", "PYTHON_9.3")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the script should run correctly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Aug 2010 07:22:47 GMT</pubDate>
    <dc:creator>FrédéricPRALLY</dc:creator>
    <dc:date>2010-08-30T07:22:47Z</dc:date>
    <item>
      <title>Calculate Field Management (x,y) using Python in ArcGIS 10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-field-management-x-y-using-python-in/m-p/465209#M15641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to calculate the x and y coordinates using the Calculate Field tool in ArcToolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code works in ArcGIS 9.3.1 but not ArcGIS 10. Any idea as to why it doesn't work? All input data variables are the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CalculateField_management(BT_BNG, "Eastings", "!shape.firstpoint.x!", "PYTHON", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After running the code I receive the following message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Invalid property firstpoint.x. Valid properties: labelpoint, type, extent, truecentroid, firstpoint, lastpoint, ismultipart, hullrectangle, area, length, partcount, pointcount, centroid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Calculate Field).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 13:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-field-management-x-y-using-python-in/m-p/465209#M15641</guid>
      <dc:creator>EdwardNicholas</dc:creator>
      <dc:date>2010-08-23T13:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Management (x,y) using Python in ArcGIS 10</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-field-management-x-y-using-python-in/m-p/465210#M15642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Edward,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to replace PYTHON by PYTHON_9.3 in the expression type of CalculateField_management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See sample below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.CalculateField_management(BT_BNG, "Eastings", "!Shape.firstPoint.X!", "PYTHON_9.3")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the script should run correctly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-field-management-x-y-using-python-in/m-p/465210#M15642</guid>
      <dc:creator>FrédéricPRALLY</dc:creator>
      <dc:date>2010-08-30T07:22:47Z</dc:date>
    </item>
  </channel>
</rss>

