VB 操作CAD样条曲线,下面代码为何绘制不出来,请大师指点~
Dim StartTan(0 To 2) As DoubleDim EndTan(0 To 2) As Double
StartTan(0) = 1
StartTan(1) = 2
StartTan(2) = 3
EndTan(0) = 47
EndTan(1) = 58
EndTan(2) = 69
Dim SzXiePaoDianYiwei(302) As Single
Dim I As Integer
Dim K As Integer
For I = 0 To 302
SzXiePaoDianYiwei(I) = 10 * I + 1
Next
Dim Splineboj As AcadSpline
Set Splineboj = Acadapp.ActiveDocument.ModelSpace.AddSpline(SzXiePaoDianYiwei, StartTan, EndTan)