HI all
I am puzzled by a simple problem. I don't know how to access a point object's x and y coordinate from a arctoolbox in python script.
It can be accessed this way:
pnt=arcpy.GetParameterAsText(0).split() # c1 is a point object in arctoolbox interface
x=float(pnt[0])
y=float(pnt[1])
It's not ideal because the code will fail when the x and y are inputed in different decimal seperator, say ',' format.
So I use:
pnt=arcpy.GetParamete(0)
But what's the method to get pnt.X and pnt.Y?