I am not completely sure of what you are trying to do but here is one idea.
Private Type MyPt
pt0 As Long
pt1 As Long
pt2 As Long
End Type
Private Sub Command1_Click()
Dim exCh As MyPt
Dim NewArr(7) As MyPt
Dim Pt(7, 2) As Long
Dim iX As Long
Dim iY As Long
For iX = 0 To 7 ' Fill the array for demo purpose
For iY = 0 To 2
Pt(iX, iY) = iX + iY
Next
Next
For iX = 0 To 7 'Convert the data over to MyPt type and add to new array
exCh.pt0 = Pt(iX, 0)
exCh.pt1 = Pt(iX, 1)
exCh.pt2 = Pt(iX, 2)
NewArr(iX) = exCh
Next
End Sub
If you choose to battle wits with the witless be prepared to lose.
Pt(7,2) is an array of 3d points.
Example
Pt(0,0) = X Value
Pt(0,1) = y value
Pt(0,2) = Z Value
I need to create a box with these points, but i am bound to my plug-in aplications abilities. I use Rhino.Addbox(Pt), but Rhino.Addbox requires a one dimensional array.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.