Get Text.BoxSize before Add in EntityList
wonmin jeong
I use devDept.Eyeshot 12 version
I want text2 to be positioned next to text1 without overlapping it.
Current
Text text = new Text(pos, str, height);
this.Entities.Add(text); // EntityList.Add(Text)
Size3D boxSize = text.BoxSize;
double min = boxSize.Min;
double max = boxSize.Max;
-------------------------------------------------
I want this
Text text = new Text(pos, str, height);
Size3D boxSize = Something way to get;
double min = boxSize.Min;
double max = boxSize.Max;
-------------------------------------------------
I tried
Text text = new Text(pos, str, height);
Size3D boxSize = text.BoxSize; // <--- text.BoxSize is null
double min = boxSize.Min; // boxSize null Exception
double max = boxSize.Max;
this.Entities.Add(text); // EntityList.Add(Text)
I want to get text.BoxMin and BoxMax too.
0
Comments
you have to call:
text.Regen(0.1); //0.1 => use your intended tolerance valuebefore accessing BoxSize
Please sign in to leave a comment.