小弟初学编程,还没入门,请问下面代码中set和call都能实现画直线,它们有什么不同?
Public Sub zhixian1()
Dim line As AcadLine
Dim a(0 To 2) As Double
Dim b(0 To 2) As Double
Dim c(0 To 2) As Double
a(0) = 10
a(1) = 10
a(2) = 0
b(0) = 100
b(1) = 100
b(2) = 0
c(0) = 0
c(1) = 10
c(2) = 0
Set line = ThisDrawing.ModelSpace.AddLine(a, b)
Call ThisDrawing.ModelSpace.AddLine(b, c)
End Sub