Here is the relevant code.
fingerRail = rs.AddCircle(rs.WorldZXPlane(), rad)
#name = 'Size {:.3f} + {:.3f}'.format(opt.Size, offset)
name = 'fred'
rs.ObjectName(fingerRail, name)
fingerRail is a populated GUID and name is a string when it calls:
But I get a ‘str is not callable’ error and the name is not changed.
4 posts - 2 participants