I create a TextEntity,and have set a TextHeight to it,but when i add it to a list,its TextHeight was set to default 1,and the DimenScale shows also.What’s wrong with it?
Can you share some source code?
– Dale
Hi,
Could it be you transform te textentity or change anything else on it?
Iirc there is a bug that defaults the text height back after changing other properties of a textentity.
-Willem
@Willem I didn’t transform,take a look at the video i upload,thanks!
The video isn’t helpful.
If you want help, please provide source code, that we can run here, that isn’t working for you.
– Dale
Hello @dale !
I have encountered a similar problem. However, in my case, I am getting the bounding box of the TextEntity. Here is a simplified version of the code I run in GhPython component:
import Rhino.Geometry as rg
# create TextEntity
textEntity = rg.TextEntity()
textEntity.Text = "I am text"
textEntity.TextHeight = 100
# initial text height value
print textEntity.TextHeight
# some manipulation
print textEntity.GetBoundingBox(textEntity.Plane).Diagonal.X
# height defaults back
print textEntity.TextHeight
Here is the output:
100.0
519.565217391
1.0
Thanks in advance
Pavel