import sys def GetVector(shape): x0 = 1 y0 = 2 x1 = 3 y1 = 4 a = [x0, y0] b = [x1, y1] vecsum = [a[0]+b[0], a[1]+b[1] ] return vecsum[1]
GetVector( !Shape!)
import sys def GetVector(shape): x0 = !xorigin! y0 = 2 x1 = 3 y1 = 4 a = [x0, y0] b = [x1, y1] vecsum = [a[0]+b[0], a[1]+b[1] ] return vecsum[1]
Solved! Go to Solution.
def GetVector(shape, xorigin): x0 = xorigin y0 = 2 x1 = 3 y1 = 4 a = [x0, y0] b = [x1, y1] vecsum = [a[0] + b[0], a[1] + b[1]] return vecsum[1]
GetVector(!Shape!, !xorigin!)
def GetVector(shape, xorigin): x0 = xorigin y0 = 2 x1 = 3 y1 = 4 a = [x0, y0] b = [x1, y1] vecsum = [a[0] + b[0], a[1] + b[1]] return vecsum[1]
GetVector(!Shape!, !xorigin!)