Create a `for loop` with Python in a specific direction using a vector

I`m trying to create an array with an object in python. I also want to give the array a specific direction with the use of a vector. Does anyone have an idea how to solve this by using Python? Possibly with the numpy (np) command…but how?

My second question is why the cubes look different distance in Revit then in Dynamo? Possibly this has something to do with units?

The below code is as far as I got until now, but here the array is only based on pointcoordinates. There must be a way to generate the pointscoordinates/ cuboids using a vector.
Any help is welcome!

1 Like

Thanks Ewan!