明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2095|回复: 2

对面的高手看过来

[复制链接]
发表于 2002-9-5 18:26 | 显示全部楼层 |阅读模式
在vba 中如何把一个text用线框起来,或用图框起来
也就是如何判断acadtext的高度,长度
发表于 2002-9-5 21: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.
 楼主| 发表于 2002-9-6 17:43 | 显示全部楼层

还有一点问题

对大部分实体是可行的,
但对于MText却不行,
创建MText(在cad中)时,必须先输入一个范围
GetBoundingBox方法只能返回这个范围
但文字不一定在该范围内
这时该怎么办?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-4-26 10:41 , Processed in 0.278584 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表