<?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: Field Calculator - Python replacement for simple VB Script - Move XY in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/field-calculator-python-replacement-for-simple-vb/m-p/204438#M7005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With the help of Google I found the answer to my own question on this website:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nodedangles.wordpress.com/2011/03/08/calculating-geometry-using-arcpy-in-field-calculator/"&gt;http://nodedangles.wordpress.com/2011/03/08/calculating-geometry-using-arcpy-in-field-calculator/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works perfectly and is only one line of code so Python wins this round...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Point(!Near_X!,!Near_Y!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2011 14:54:46 GMT</pubDate>
    <dc:creator>JimW1</dc:creator>
    <dc:date>2011-10-31T14:54:46Z</dc:date>
    <item>
      <title>Field Calculator - Python replacement for simple VB Script - Move XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-calculator-python-replacement-for-simple-vb/m-p/204437#M7004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've been using the super simple syntax:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Shape] = Shape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Shape].X = [NEAR_X]&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Shape].Y = [NEAR_Y]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To move the location of points in field calculator to new positions based on NEAR results. ThisVB Script doesn't work in Arc10 and now I have to learn python to replace 2 lines of code and I barely do any coding now. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives me the error Object Required 'esri__1' in both ArcCatalog and ArcMap. I read somewhere it has to do with the new VB Script parser. This model step is in the middle of a 50+ process model so any solution needs to work in line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched and searched for a simple python version with no success. My workaround is to just make a new feature with 'XY Event' but I'd really rather just update the 'broken by version 10' code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-calculator-python-replacement-for-simple-vb/m-p/204437#M7004</guid>
      <dc:creator>JimW1</dc:creator>
      <dc:date>2011-10-31T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator - Python replacement for simple VB Script - Move XY</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-calculator-python-replacement-for-simple-vb/m-p/204438#M7005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With the help of Google I found the answer to my own question on this website:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nodedangles.wordpress.com/2011/03/08/calculating-geometry-using-arcpy-in-field-calculator/"&gt;http://nodedangles.wordpress.com/2011/03/08/calculating-geometry-using-arcpy-in-field-calculator/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works perfectly and is only one line of code so Python wins this round...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Point(!Near_X!,!Near_Y!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 14:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-calculator-python-replacement-for-simple-vb/m-p/204438#M7005</guid>
      <dc:creator>JimW1</dc:creator>
      <dc:date>2011-10-31T14:54:46Z</dc:date>
    </item>
  </channel>
</rss>

