大家看看这个程序怎么改,运行时总是说运行时错误424,要求对象
Private Sub Image1_Click()End Sub
Private Sub CommandButton1_Click()
Dim pt1(2) As Double
Dim radius As Double
Dim addcircle As AcadCircle
pt1(0) = Text1.Text: pt1(1) = Text2.Text
radius = Text3.Text
UserForm1.Hide
ThisDrawing.ModelSpace.addcircle pt1, radius
End Sub
Private Sub CommandButton2_Click()
End
End Sub
Private Sub CommandButton3_Click()
Dim PtPick As Variant
UserForm1.Hide
PtPick = ThisDrawing.Utility.GetPoint
Text1.Text = PtPick(0): Text2.Text = PtPick(1)
UserForm1.Show
End Sub