Hi,
Can anyone please help me with trying to get point coordinates using TextField in python 3.0
I know there are other ways to get this information but I need it to be a TextField . I have done curve length using similar syntax but cannot get PointCordinate to work.
Also not sure how to define the “Axes” to be output.
The font info comes from an eto form and that is ok.
Maybe its a bug not sure.
All the best
Roger
if objs:
for obj in objs:
crvstart = rs.CurveStartPoint(obj)
stpt = rs.AddPoint(crvstart)
#print(stpt)#ignore these lines
#print(crvstart)
#csx = crvstart[0]
#csy = crvstart[1]
#csz = crvstart[2]
crvend = rs.CurveEndPoint(obj)
#%<PointCoordinate("ObjectID","Axes")>% #### this is the format given in rhino help file
stco = "%<PointCoordinate ('" + str(stpt) + "')>%"
print(stco)
text3D = rs.AddText(str(stco), crvstart, height=Font, font="Arial", font_style=1, justification=2)
print ("End of Print Curve XYZ")