AnsweredAssumed Answered

Convert VBA to Python field calculator script

Question asked by sassy19a on Oct 15, 2014
Latest reply on May 6, 2015 by curtvprice

Hi, I have been using this VBA field calculator script in ArcGIS 9.3.1 to shift points spatially according to the X & Y fields from a table join:

 

Dim pPoint As IPoint

Set pPoint = [Shape]

pPoint.X = [X]

pPoint.Y = [Y]

__esri_field_calculator_splitter__

pPoint

 

However, it does not work in after I upgraded to ArcGIS 10.2.2. Is there anyone who is able to convert this VBA script to Python?

 

Thank you in advance.

 

Regards,

Siyang

Outcomes