我如何测量 Eyeshot Vb.net 中文本实体的宽度?

how i can measure width of text entity in Eyeshot Vb.net?

我想测量 Vb.net 中的文本宽度。就像我有一个文本实体,我可以获取或设置文本高度但无法像代码中的文本那样获取文本 width.Just,我想要它的宽度,我在构造函数中将其高度设置为 0.25 .

Dim a As Text
a.TextString = "Ahmad"
a.Height = 0.25
a.Plane = Plane.ZX
a.InsertionPoint = New Point3D(xMinGlobal - 2.5, 0, 1.5)

您可以查看实体的BoxSize 属性。 如果没有,请尝试调用 Regen() 方法或将文本实体添加到场景中。