SolidCraft Rectangular Pattern Tutorial: Space Copies Evenly

November 19, 2026 · SolidCraft + Claude Course (part 9)

▶ Watch on YouTube & subscribe to The Stack Underflow

Five hooks on a strip should leave the same margin at both ends. I typed a spacing of 24 and Measure read 20.00 mm at the left end and 44.00 mm at the right. Nothing warned me. 24 looked right because 120 / 5 = 24, but five hooks make only four steps.

The one-line version: spacing = (strip - 2 x margin - hook width) / (hooks - 1), then measure both ends.

Last verified in our lab: 16 November 2026 (SolidCraft 0.28.0; Claude Code 2.1.311 with Claude Sonnet 5.5; Linux in Docker).

The words first

  • Pattern: repeats a feature along a direction, a set number of times.
  • Quantity: how many copies in total, the first one included.
  • Spacing: the distance from the start of one hook (its left face) to the start of the next.
  • Run: the distance from the first hook’s start to the last hook’s start.

The sum, written out

  1. Spacing is measured start to start, not gap to gap.
  2. Run = strip minus both margins minus one hook: 180 - 20 - 20 - 20 = 120.
  3. Quantity counts every hook, so 5 hooks make 4 steps: 120 / 4 = 30. (120 / 5 = 24 is the mistake.)
  4. Model tab, Arrange, Pattern: Object Type Features, the hook picked on the History bar, Direction = the strip’s long top edge, Quantity 5, Spacing 30.

What we measured

Measure from the end views, plus a script that reads the saved model (“by code”):

SetupLeft endRight endNotes
Spacing 24 (typed)20.00 mm44.00 mmfour steps of 24 cover 96 of the 120 run; the 24 left over joins the right margin
Spacing 3020.00 mm20.00 mm10 mm of air between hooks (by code)
Strip 220, hooks 6, spacing as a formula20.00 mm20.00 mmspacing 32 (by code), six hooks, one body

As a formula: Quantity hooks, Spacing (rack_width - 2 * margin - width) / (hooks - 1). hooks must have Unit none in Parameters; in millimetres the pattern refuses it (by code). On the 220 strip a typed 30 would leave 30 at the right end (by code).

Not in the video: Alignment Center with spacing 30 would start the hooks at -60, two hooks past the strip’s left end (by code). The 220 rack is 220.0 x 60.0 x 30.0 mm; nothing was printed.

Then with Claude

Claude Code 2.1.311 with Claude Sonnet 5.5, SolidCraft’s MCP server only; one run each, not a score:

  • Run 1, one sentence ($0.23): it added a named size, hook_pitch, with the same formula, patterned the hook with Quantity hooks and kept the 20 mm margin without being asked. Our check by code: 5 hooks, 20.0 / 20.0, one body. It did not save the file.
  • Run 2, plus “keep 20 mm from each end, use a pattern, measure both end gaps” ($0.20): the same build. It reported 20.0 / 20.0, worked out from the hook positions, not with the Measure tool. Our check agrees. It did not save the file.

Your turn, no AI

Three hooks, 20 wide, on a 140 mm strip, margins 20. What spacing? Type it, then measure both ends. The answer is in the video’s pinned comment.

The course

Sources

  • The lab: scripts, logs, tests and every measurement above

Change notes

  • 20 Nov 2026: first published, from the lesson’s lab results of 16 Nov 2026.

Not affiliated with or endorsed by SolidCraft (Tangency Labs) or Anthropic. Found a mistake? Tell us in the video’s comments and we’ll correct this page.

Found this useful? The deep version lives on YouTube — new breakdowns of how AI dev tools actually work, weekly.

Subscribe on YouTube →

Prefer email? Get the free newsletter: one failure, traced step by step, about once a week.