对面的高手看过来
在vba 中如何把一个text用线框起来,或用图框起来也就是如何判断acadtext的高度,长度
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.
还有一点问题
对大部分实体是可行的,但对于MText却不行,
创建MText(在cad中)时,必须先输入一个范围
GetBoundingBox方法只能返回这个范围
但文字不一定在该范围内
这时该怎么办?
页:
[1]