AnsweredAssumed Answered

Move point features based on XY values

Question asked by sassy19a on May 6, 2015
Latest reply on Sep 4, 2015 by sassy19a



I have posted this question previously, but was unable to obtain a definite reply. Hence I am re-posting it once more.


I need to move a set of features based on the XY values from another table linked through table join.


I found a field calculator script (see below), but it was not perfect. This is because the this script can only work if the XY values are within the same table. It does not work with a table join.


Can anyone help to tweak this script or propose an alternative?


def pointMove(shape,x_value,y_value):
   point = shape.getPart(0)
   point.X = x_value
   point.Y = y_value
   return point

pointMove( !Shape!, !X!, !Y! )


I am using ArcGIS Desktop 10.2.2.