Repeat
A repeat makes a part expand into N evenly distributed copies along an axis. You model one real shelf and ModuleCAD generates the rest — and the count can come from a variable or a form field (“How many shelves?”).
Turn it on
- In module mode, select the part (e.g. a shelf).
- In the Properties panel, Repeat along axis section, tick Repeat this part.
- Fill in:
| Field | Description |
|---|---|
| Axis | X, Y or Z — the direction the copies spread along (Y for shelves). |
| Count | Total number of parts, including the original. A number or an expression. |
| From | Start of the clear span along the axis (e.g. the top of the bottom panel). A number or an expression. |
| To | End of the clear span along the axis (e.g. the underside of the top). A number or an expression. |
The panel shows the resulting Opening — the clear distance between consecutive parts.
How the copies are distributed
The repeat follows the equal openings rule, as a cabinetmaker would: N parts create N + 1
equal openings inside the [From, To] range, already discounting the parts’ thickness.
opening = (To − From − N × thickness) / (N + 1)where thickness is the part’s dimension along the chosen axis.
Example: a 700 mm clear span (From = 0, To = 700), 3 shelves of 15 mm:
opening = (700 − 45) / 4 = 163.75 mm between each one.
If the parts don’t fit (N × thickness > span), the opening is negative and the parts overlap — ModuleCAD shows it, but doesn’t treat it as an error.
Rules
- One repeat per part. Creating another replaces the previous one.
- The count is rounded to the nearest integer and limited to 0–25.
- A count of 0 hides the original part itself.
- If any expression fails, or if From is greater than To, the whole repeat is suspended: only the original part appears and the error is shown on the matching field.
- On the source part, the move gizmo’s arrow for the repeated axis is hidden — the position on that axis is controlled by the repeat.
The copies are not parts
The copies are generated, not stored. They don’t appear in the object tree and can’t be selected, mated or sketched on individually — all of that applies to the source part. The copies do appear in the viewport, in the quote, in the cut list and in the cut plan.
Count from the form
Bind the Count to a module form field (for example, shelf_count) so whoever uses the module
in a project can choose how many shelves they want. The panel reminds you: “Tie the count to a form
input so project users can change it.” See Module form.