autome 发表于 2002-9-5 18:26:00

对面的高手看过来

在vba 中如何把一个text用线框起来,或用图框起来
也就是如何判断acadtext的高度,长度

秋枫 发表于 2002-9-5 21:00:00

object.GetBoundingBox MinPoint, MaxPoint

Gets two points of a box enclosing the specified object.

See Also | Example

Signature

object.GetBoundingBox MinPoint, MaxPoint

Object

All Drawing Objects, AttributeReference
The object or objects this method applies to.

MinPoint

Variant (three-element array of doubles); output-only
The 3D WCS coordinates specifying the minimum point of the object's bounding box.

MaxPoint

Variant (three-element array of doubles); output-only
The 3D WCS coordinates specifying the maximum point of the object's bounding box.

Remarks

The corners are returned in WCS coordinates with the box edges parallel to the WCS X, Y, and Z axes.

autome 发表于 2002-9-6 17:43:00

还有一点问题

对大部分实体是可行的,
但对于MText却不行,
创建MText(在cad中)时,必须先输入一个范围
GetBoundingBox方法只能返回这个范围
但文字不一定在该范围内
这时该怎么办?
页: [1]
查看完整版本: 对面的高手看过来