Draw annotation bugs

Hi,developers!
I found that when draw annotations,the text height does not changed!What did i miss?


DRAW ANNOTATION.gh (5.5 KB)

As I have suspected, the actual drawing method is called before the property is set somehow.
I experimented with using a class field of Script_Instace, so I could pass the TextHeight assignment right before the DrawAnnotation() call. It worked.

So change line 65 to TH = height;
Below line 72 add private double TH;
Above line 89 (now 90) add entity.TextHeight = TH;