3dSynth

Tutorials / SynthBlocks

Open in the interactive tutorials reader

Tutorial 11: Grid Pattern

In this tutorial, you'll learn how to duplicate objects using the Grid Array block. This is perfect for batch printing multiple parts, creating grid-like textures, or producing test matrices.

A 4×4 grid of small cylinders

What you'll learn

Prerequisites


Step 1: Define your variables

We'll expose every grid and shape parameter as viewport sliders so you can reshape the pattern instantly.

Set Variable

Interactive preview is available in the interactive reader.

Step 1

Create five variables

Add five Set Variable blocks to the top of your Path Group:

  1. gridCols = 4

Enable Show in viewport on each one.


Step 2: Position the grid origin

The Grid Array expands to the right and back from its origin point. We'll start at X = 50, Y = 50 so the grid has room to grow without running off the build plate.

Translate

Interactive preview is available in the interactive reader.

Step 2

Add a Translate block

Drag a Translate block below the Set Variable blocks.
Set X to 50 and Y to 50.
All remaining blocks go inside the Translate body.


Step 3: Add Grid Array

The Grid Array block duplicates everything inside its body across a grid of columns and rows, automatically shifting the local origin for each copy.

Grid Array

Interactive preview is available in the interactive reader.

Step 3

Add Grid Array

From the Structure category, drag a Grid Array block into the Translate body.
Set Cols to the variable gridCols, Rows to the variable gridRows, Spacing X to the variable spacing, and Spacing Y to the variable spacing.

With 4 columns × 4 rows, that's 16 copies in total — each offset by 30 mm.


Step 4: Draw a cylinder

Inside the array, we define the shape to duplicate. A cylinder is just a circle repeated at stacked layer heights.

Stack Layers

Interactive preview is available in the interactive reader.

Step 4

Add Stack Layers

Drag a Stack Layers block into the Grid Array body.
Set Start Z to Layer Height (the printer-setting block), End Z to the variable cylinderHeight, and Layer Height to the Layer Height printer-setting block.

Circle

Interactive preview is available in the interactive reader.

Step 5

Add a Circle

From Geometry, drag a Circle block into the Stack Layers body.
Set Radius to the variable cylinderRadius.


Complete block program

Full program — Tutorial 11

Interactive preview is available in the interactive reader.


Final block structure

#BlockWhereValues
1Set Variable gridColsPath Group4 · Show in viewport
2Set Variable gridRowsPath Group4 · Show in viewport
3Set Variable spacingPath Group30 · Show in viewport
4Set Variable cylinderRadiusPath Group10 · Show in viewport
5Set Variable cylinderHeightPath Group5 · Show in viewport
6TranslatePath GroupX = 50, Y = 50
7Grid ArrayInside TranslateCols = gridCols, Rows = gridRows, Spacing = spacing
8  ↳ Stack LayersInside GridStart Z = Layer Height, End Z = cylinderHeight, LH = Layer Height
9    ↳ CircleInside StackR = cylinderRadius

Outcome

You have created a fully parametric 4×4 grid of cylinders. The Grid Array block handles all the coordinate math, shifting the local origin for each copy. Drag the sliders to change the grid size, spacing, and cylinder dimensions in real time.


Load this tutorial

Interactive preview is available in the interactive reader.

Interactive preview is available in the interactive reader.


What's Next

Tutorial 12: Parametric Cup — Combine Stack Layers and Spiral Up to build a practical object with a solid base and hollow walls.