Dynamo - Translating points at specified steps

Hi

I am fairly new to Dynamo and Python, and this might be a very basic question. I have been struggling with something, that feels basic, for way too long. I have created a specific geometry of boundary points (in a list) and polylines that I want to copy in a certain direction (z-axis direction in my case) for a specified amount of times at a given z increment. I have tried translating the points but I can only seem to do a single translation. I do not want to specify a translation numerous times, because the step size and number of steps are dependent on geometry input of a wall family. Surely there must be a way of doing this through a sequence? As an example, I want to copy a grid of points in the X-Y plane, 20 times in the Z-axis direction in increments of 25 mm.

I do not know Python language at all, but I also feel some kind of for loop will be ideal to copy a list of points for increased steps. It will also be more neat and less stringent coding.

Can any assist? Will really appreciate the help.

No need for Python; you can use Design Script to build your range and move stuff around like this:

To define a range of numbers we have some options.

start to stop stepping by 1: start..stop;
start to stop stepping by a number: start..stop..step;
start with number of steps of increment: start..#count..step;
start to stop with number steps: start..stop..#count;
start to stop with approximate step: start..stop..~approxStep;

The Dynamo Office Hour on design script has more info here if you’re looking to learn more about them, as does the Dynamo Primer here.

Told you it is most probably something straight-forward. Thanks @jacob.small, works perfect with some minor tweaks. Really appreciate the help!!

1 Like