Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Vb.net 中测量文本宽度。就像我有一个文本实体一样,我可以获取或设置文本高度但无法获取文本宽度。就像代码中的文本一样,我想要它的宽度,我在构造函数中将其高度设置为 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()方法或将文本实体添加到场景中。