I want to write a simple piece of code to calculate forces in a bolt group. the bolts are placed in a coordinate system of x columns and y rows. lets say i have a 3x4 system i get the following points:
(0,0) , (1,0) , (2,0) , (3,0)
(0,1) , (1,1) , (2,1) , (3,1)
(0,2) , (1,2) , (2,2) , (3,2)
(0,3) , (1,3) , (2,3) , (3,3)
I can create this with the folowing code:
Dim myarray(3, 4) As String
For x = LBound(myarray, 1) To UBound(myarray, 1)
For y = LBound(myarray, 2) To UBound(myarray, 2)
myarray(x, y) = x & "," & y
Cells(x + 1, y + 1).Value = myarray(x, y)
Next y
Next x
now i need to get a list with x and y coordinates to calculate the vector r:
x y
0 0
1 0
2 0
3 0
0 1
1 1
2 1
3 1
... and so on
if tried different things try and split the array, but it always fails :( any help would be greatly appreciated!
Regards,
- Batman