Rhino3dmIO Geometry.Leader Plain Text empty

Hi all,

I am trying to read the content of a Leader Text but the PlainText property is empty. I’ve also tried to cast the Leader to an AnnotationBase but I get the same result:


If I look into the m_parent field the PlainText is reported correctly:

Is there a way to fix this?

Thank you

Hi @giobro,

I can repeat the problem here, and I’ve logged the issue:

https://mcneel.myjetbrains.com/youtrack/issue/RH-58606

Unfortunatly, I don’t have a workaround at this time.

– Dale

1 Like

We’ll fix it, but for a temporary workaround, you can add a couple of lines before reading the text:

          ON_3dPoint bbox_min, bbox_max;
          leader->GetAnnotationBoundingBox(nullptr, nullptr, 1.0, bbox_min, bbox_max, false);
          ON_wString text = leader->PlainText();
1 Like

RH-58606 is fixed in the latest Service Release Candidate

1 Like