I would like to fill a 3-dimensional array with data of just one dimension.
Simplified example for a 3-dimensional array 3DimArray(3,3,3) :
I would like to assign the values 1.0, 2.0 and 3.0 to the 3DimArray() positions (0,0,0), (0,0,1) and (0,0,2) in one line like:
3DimArray(0,0,….) = …..1.0, 2.0, 3.0
Is this possible?
The reason I would like to do this, is that the actual array is a lot bigger than 3x3x3.
Cheers,
Jaap
No, it is not possible.
For a simple 1D array there is a method called Array. You can do:
Var MyArray() as Double = Array(1.0,2.0,3.0)
Thanks for the reply Ian!
I realise that I can import data into one-dimensional arrays (using the Array method) and then transfer these from the 1D- to a 3D-array, making use of a loop. Should work.
Cheers,
Jaap
MarkusR
(MarkusR)
November 7, 2025, 2:49pm
4
It could be same storing a object as example with x y z properties
But it belongs what you are doing
I’ve solved it by importing data in a 1D Array and then put the data in the 3D Array with a triple loop. So, issue solved!