Usual Grid in Dynamo

Hello everybody,

I’m trying to create a simple axis grid. It should consist of X-directed and Y-directed axis lines and you should be able to set the number of axes and the distances between them by number-sliders.
My first thought was:

  1. lines on the X and Y axis
  2. points on these lines to determine distances and number of axes (e.g. length 10 m, number of points 5 --> points every 2 m)
  3. axis grid lines: Starting points are the points on the axes (X direction, if point on Y axis and vice versa)

It seems quite complicated to me and I can imagine that there is an easier way. Does anyone know?

Best regards, Heiko

Something like this ?

home.dyn (11.5 KB)

1 Like

@heiko.hornef8D6J9 Certainly not complicated. Another way…

grid.dyn (17.9 KB)

1 Like

Hey there and thank you for your answers. Great to see how two different styles can lead to one solution. Thanks!


How about starting a grid from a center point?

Just in case if you need @Vikram_Subbaiah 's script work as @mellouze script. (centrepoint of grid at origin)

Just have to redefine x_min, x_max etc. from my graph given a centerpoint and a length :slight_smile:

1 Like