close
Sub VBATEST_025()
MsgBox "[範例]建立圓並更新圖面"
'縮放圖面
ZoomAll
Dim circleObj As AcadCircle
Dim center(0 To 2) As Double
Dim radius As Double
center(0) = 1: center(1) = 1: center(2) = 0
radius = 1
' 建立圓
Set circleObj = ThisDrawing.ModelSpace.AddCircle(center, radius)
' 更新圓
circleObj.Update
End Sub
全站熱搜
留言列表