明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1771|回复: 2

[VBA]如何用VBA将块炸成基本图元,并获得炸开后的图元?

[复制链接]
发表于 2004-5-21 11:01:00 | 显示全部楼层 |阅读模式
如何用VBA将块炸成基本图元,并获得炸开后的图元? 我在论坛上没有找到VBA的例子。
发表于 2004-5-21 11:03:00 | 显示全部楼层
cqszgs发表于2004-5-21 11:01:00回复:(cqszgs)如何用VBA将块炸成基本图元,并获得炸开后的图元? 如何用VBA将块炸成基本图元,并获得炸开后的图元? 我在论坛上没有找到VBA的例子。
帮助里就有麽

Explodes the compound object into subentities.

MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/explode_see_also.htm" target="_blank" >See Also | MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/ex_explode.htm" target="_blank" >Example

Signature

RetVal = object.Explode

Object

MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_3dpoly_object.htm" target="_blank" >3DPolyline , MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_blockref_object.htm" target="_blank" >BlockRef, MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_lightweightpolyline_object.htm" target="_blank" >LightweightPolyline, MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_minsertblock_object.htm" target="_blank" >MInsertBlock, MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_polygonmesh_object.htm" target="_blank" >Polygonmesh, MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_polyline_object.htm" target="_blank" >Polyline, MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_region_object.htm" target="_blank" >Region
The object or objects this method applies to.

RetVal

Variant (array of objects)
The array of exploded objects.

Remarks

Depending on the type of compound object you're exploding, different results occur. Refer to the EXPLODE command topic in the AutoCAD Command Reference for a detailed list of explodable objects and their results.

You do not have to explode a block in order to manipulate its constituent entities. All block definitions have an Item method that allow you to manipulate the entities within the block without exploding the block definition itself.


 楼主| 发表于 2004-5-21 11:13:00 | 显示全部楼层
lzh741206发表于2004-5-21 11:03:00以下是引用cqszgs在2004-5-21 11:01:20的发言:回复:(cqszgs)如何用VBA将块炸成基本图元,并获得炸开后的图元?
谢谢lzh741206,你的回复一直都非常快。
以前也用过EXPLODE命令,一直没有注意函数的返回值,主要是因为帮助是英文的,所有有什么问题一般在论坛上找。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-28 06:33 , Processed in 0.155347 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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