逐个加入点至自定义数组:
1
2 Dim i
3 Dim dblTempArray
4 Dim arrPoints()
56
i = -1
7 Do
8 dblTempArray = Rhino.GetPoint("Pick a point to add to the solution")
9 If IsArray(dblTempArray) Then
10 i = i+1
11 ReDim Preserve arrPoints(i)
12 arrPoints(i) = dblTempArray
13 Else
14 Exit Do
15 End If
16 Loop
17
18 If i = -1 Then Exit Sub
19 Rhino.AddPointCloud(arrPoints)