zyh0312 发表于 2005-6-7 09:29:00

帮帮我这个新手

在建立拉伸实体时,怎样能更有效的将之前生成的拉伸平面消除呢?
                                                 本人刚刚开始学习,请各位师兄、师姐多多帮忙。

cbse_smy 发表于 2005-6-11 19:25:00

你的意思有点不清楚,不知道是删除已拉伸好的实体,还是恢复操作。
若是前者可删除,是后者则加上以下语句:sendcommand "U "

zyh0312 发表于 2005-6-12 09:40:00

Sub Example_AddRegion()
    ' This example creates a region from an arc and a line.
   
    Dim curves(0 To 1) As AcadEntity    ' Define the arc
    Dim centerPoint(0 To 2) As Double
    Dim radius As Double
    Dim startAngle As Double
    Dim endAngle As Double
    centerPoint(0) = 5#: centerPoint(1) = 3#: centerPoint(2) = 0#
    radius = 2#
    startAngle = 0
    endAngle = 3.141592
    Set curves(0) = ThisDrawing.ModelSpace.AddArc(centerPoint, radius, startAngle, endAngle)
   
    ' Define the line
    Set curves(1) = ThisDrawing.ModelSpace.AddLine(curves(0).startPoint, curves(0).endPoint)
      
    ' Create the region
    Dim regionObj As Variant
    regionObj = ThisDrawing.ModelSpace.addregion(curves)dim height as double
dim taperangle as double
height=3
taperangle=0dim solidobj as acad3dsolid
set solidobj=thisdrawing.modelspace.addextrudedsolid(regionobj(0),height,taperangle)
zoomallEnd Sub在上面在上面这个例子中,我们先建立了面域regionobj,然后将拉伸成三维实体,但此时图形空间中还存在面域regionobj,这种情况下,我们如何将该面域删除。                         谢谢帮助!!!

hillskysea 发表于 2009-6-4 19:08:00

这么老的帖子我也把它顶起来,因为我也遇到这样的问题,期待高手解决
页: [1]
查看完整版本: 帮帮我这个新手