明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2016|回复: 4

[基础] 求助如何用LISP求得3DSOLID物件之边界下限及边界上限座标?

[复制链接]
发表于 2010-4-26 06:57 | 显示全部楼层 |阅读模式

指令: LIST
选取物件: 找到 1 个

选取物件:

                  3DSOLID   图层:“H300X300”
                            空间: 模型空间
                   处理码 = b3202
              历程 = 无
            显示历程 = 否
            边界框:        边界下限 X = 1339962.9, Y = 47795.7  , Z = 100045.0
                        边界上限 X = 1339992.9, Y = 47825.7  , Z = 101024.3

请教诸位网友红色标示之 "边界下限及边界上限座标" 如何用LISP求得

"觉得好,就打赏"
还没有人打赏,支持一下
 楼主| 发表于 2010-4-27 14:42 | 显示全部楼层

自己顶一下!

恳请高手帮忙!

发表于 2010-4-28 10:43 | 显示全部楼层

Signature

object.GetBoundingBox MinPoint, MaxPoint

Object

MSITStore:D:\AutoCAD%202002\help\acadauto.chm::/all_drawing_objects.htm">All Drawing Objects, MSITStore:D:\AutoCAD%202002\help\acadauto.chm::/idh_attributeref_object.htm">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.

 

MaxPoint 

MinPoint 

 
发表于 2010-4-28 13:13 | 显示全部楼层
(vla-getboundingbox (vlax-ename->vla-object (car (entsel))) 'maxpt 'minpt)(vlax-safearray->list maxpt)(vlax-safearray->list minpt)
 楼主| 发表于 2010-4-28 16:52 | 显示全部楼层

感谢 danxingpen 及 sailorcwx 两位帮忙,谢谢!

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-2 22:23 , Processed in 0.428286 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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