giobro
(Giobro)
May 16, 2020, 12:19pm
1
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
dale
(Dale Fugier)
May 18, 2020, 9:09pm
2
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
lowell
(Lowell Walmsley)
May 19, 2020, 12:14am
3
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
brian
(Brian Gillespie)
May 26, 2020, 11:40pm
4
1 Like