Hi, I’m trying to change the text in text dots using the C# component. This is what I have. When I run it, the text dots do not change. Any ideas about what I’m doing wrong?
private void RunScript(bool activate, Guid x, string y, ref object A)
{
if(activate){
Rhino.DocObjects.ObjRef objref = new Rhino.DocObjects.ObjRef(x);
Rhino.Geometry.TextDot dot = objref.TextDot();
string dotText = dot.Text.Substring(1, 2);
dotText = y + dotText;
dot.Text = dotText;
A = dot.Text;
}