In Python, I see that this method is gone. I tried the following, but the displayed points are surrounded with parenthesis, which I don’t want. Here is my code:
import rhinoscriptsyntax as rs
def AnnotatePoint():
arrPoint = rs.GetPoint(‘Select a point to identify’)
if arrPoint is None: return
strPoint = round(arrPoint[0],3), round(arrPoint[1],3), round(arrPoint[2],3)
rs.AddTextDot(strPoint,arrPoint)
if name == ‘main’:
AnnotatePoint()
What is the preferred method for rounding values in a list? Am I on the right track? What should I be doing as an alternative to the Rhinoscript Pt2Str method?
Wow! I would never have figured that out on my own. Steve, do you have a reference book that you could recommend that would help with questions like this? I’ve been reading as much as I can online, but I don’t recall ever seeing this string formatting.