- Public Function Updateregon()
- Dim p(7) As Double
- Dim lwpolyObj As AcadLWPolyline
- p(0) = 0.8: p(1) = 0
- p(2) = 1.3: p(3) = 1.1
- p(4) = 0.5: p(5) = 1.1
- p(6) = 0.5: p(7) = 0
- Set lwpolyObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(p)
- lwpolyObj.Closed = True
- '余下如下把lwpolyObj生成一个面域?请教
- Dim curves(0) As AcadEntity
- Set curves(0) = lwpolyObj
-
-
- ' 创建面域
- Dim regionObj As Variant
- regionObj = ThisDrawing.ModelSpace.AddRegion(curves)
- ZoomAll
- End Function
|