AnsweredAssumed Answered

Move polyline endpoints using field calculator?

Question asked by AJZumwalt9 on Aug 20, 2018
Latest reply on Aug 21, 2018 by Dan_Patterson

How do I go about moving the endpoint of a polyline using field calculator? I have the x,y end point coordinates in the "X" and "Y" fields. 

 

def XYsetVALUE(shape, X_value, Y_value):
point = shape.getPart(1)
point.X = X_value
point.Y = Y_value
return point

 

SHAPE = XYsetVALUE ( !SHAPE!, !X!, !Y!)

 

Outcomes