[VBA]如何用VBA将块炸成基本图元,并获得炸开后的图元?
<FONT face=宋体 size=2>如何用VBA将块炸成基本图元,并获得炸开后的图元?</FONT>我在论坛上没有找到VBA的例子。 cqszgs发表于2004-5-21 11:01:00static/image/common/back.gif回复:(cqszgs)如何用VBA将块炸成基本图元,并获得炸开后的图元? 如何用VBA将块炸成基本图元,并获得炸开后的图元?
我在论坛上没有找到VBA的例子。
帮助里就有麽
<P class=1-liner>Explodes the compound object into subentities.
<P class=h1-access><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/explode_see_also.htm" target="_blank" >See Also</A> | <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/ex_explode.htm" target="_blank" >Example</A>
<P class=Heading-2>Signature
<P class=syntax>RetVal = object.Explode
<P class=element>Object
<P class=element-desc><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_3dpoly_object.htm" target="_blank" >3DPolyline </A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_blockref_object.htm" target="_blank" >BlockRef</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_lightweightpolyline_object.htm" target="_blank" >LightweightPolyline</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_minsertblock_object.htm" target="_blank" >MInsertBlock</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_polygonmesh_object.htm" target="_blank" >Polygonmesh</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_polyline_object.htm" target="_blank" >Polyline</A>, <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_region_object.htm" target="_blank" >Region</A><BR>The object or objects this method applies to.
<P class=element>RetVal
<P class=element-desc>Variant (array of objects)<BR>The array of exploded objects.
<P class=Heading-2>Remarks
<P class=body>Depending on the type of compound object you're exploding, different results occur. Refer to the
<OBJECT id=alink_explode type=application/x-oleobject classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11><PARAM NAME="Width" VALUE="0"><PARAM NAME="Height" VALUE="0"><PARAM NAME="Command" VALUE="ALink"><PARAM NAME="Item1" VALUE="acad_acr.chm"><PARAM NAME="Item2" VALUE="explode"></OBJECT>EXPLODE command topic in the AutoCAD Command Reference for a detailed list of explodable objects and their results.
<P class=body>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.
<P class=body> <BR> lzh741206发表于2004-5-21 11:03:00static/image/common/back.gif以下是引用cqszgs在2004-5-21 11:01:20的发言:回复:(cqszgs)如何用VBA将块炸成基本图元,并获得炸开后的图元?
</DIV>谢谢<EM>lzh741206</EM>,你的回复一直都非常快。<BR>以前也用过EXPLODE命令,一直没有注意函数的返回值,主要是因为帮助是英文的,所有有什么问题一般在论坛上找。
页:
[1]