SolidCraft Assembly: Make a Hook Slide on a Rail (0.4 mm Gap)
▶ Watch on YouTube & subscribe to The Stack Underflow
Two parts that should slide need a gap between them. With no gap, they touch; with a typo, they overlap and jam. An assembly lets you test this before printing: join the parts with a sliding joint, turn on contact, and drive the joint. Then check the fit with two numbers: the interference (how much the parts overlap) and the measured gap.
The one-line version: write the slot as rib + 2 x gap, then check Interference and Measure, and drive the joint the whole way.
Last verified in our lab: 14 November 2026 (SolidCraft 0.28.0; Claude Code 2.1.311 with Claude Sonnet 5.5; Linux in Docker).
The words first
- Component: a part in an assembly that can move on its own.
- Ground: fix one component in place, so the others move relative to it.
- Slider joint: lets a component move along one direction only. As-Built joins the parts where they already are.
- Contact: makes parts stop when they touch, instead of passing through each other.
- Interference: the volume where two parts overlap. It should be zero.
The parts
A hook’s T-slot on a rail’s T-rib. The slot was typed 11.6 against a 12 mm rib, so the parts overlap. Start file: sc8-typo.sc.
By hand
- Browser: right-click the Bodies folder, Create Components from Bodies.
- SolidCraft grounds the first component (the hook): right-click it, Unground; right-click the rail, Ground.
- Move the hook 85 mm above the rail (Z 85), Capture All Positions.
- Assemble tab, As-Built: the hook and the rail, Type: Slider, OK. Then Contact, Enable All Contact.
- Drive Joints, Distance 85. With the typo: “Stopped at 5.01 mm”.
- On the parts as drawn: Inspect tab, Interference, Compute: Hook · Rail 72.00 mm³.
- Parameters:
slot_head = rib_head + 2 * gap.gap0 gives 12 mm: no interference, Nearest 0.00 mm (touching). gap0.4: the slot rebuilds 12.8. Measure, the slot’s wall edge then the rib’s bottom face: Distance 0.40 mm.- Drive Joints, Distance 85: no stop line, the whole rail.
What we measured
Our script, SolidCraft 0.28.0, with Interference’s Clearance field left at 0:
| Slot | Interference | Gap each side | Drive 85 with contact on |
|---|---|---|---|
| Typo, 11.6 | 72.00 mm³ overlap | none | stops at 5.01 mm |
gap 0 | none | 0.000 mm (touching) | runs 85.0 |
gap 0.1 | none | 0.100 mm | runs 85.0 |
gap 0.4 | none | 0.400 + 0.400 mm | runs 85.0, the whole rail |
The gap 0 and 0.1 rows were run by script, not filmed. Only one side of the 0.4 gap was filmed (Distance 0.40 mm).
Why the check passes at gap 0: at clearance 0, gaps of 0, 0.1 and 0.4 all pass both checks. The printer tells them apart: holes print a little smaller, and the first layer prints a little wider. Prusa’s guide: “An initial good measurement for movable parts is at least 0.3 mm.”
Send to Slicer (by script, not filmed): one 3MF, 2 objects, 34.6 x 60.0 x 20.0 and 80.0 x 24.0 x 10.0 mm. We printed nothing.
Then with Claude
Two runs, over SolidCraft’s MCP server:
- Run 1: the gap-0 file and “Make this hook slide onto this rail as an assembly.” Two components, the rail grounded, a slider joint (limits 0-20, driven to 15 mm). No interference check, contact off, gap 0 each side. Its reply says “I haven’t run an interference check” and that you could “set gap above 0”. It left it at 0.
- Run 2: the same plus “Leave a 0.4 mm gap each side, then check for interference and measure the gap on both sides”. Our cost guard (a spending limit per run) stopped it mid-edit. It left
gap0.4, the slot cut removed and not yet re-made, and a 3,096 mm³ overlap. Not scored, not re-run.
Your turn
Open the start file, set gap to 0.4, make the assembly, turn contact on and drive it. Then measure the slot’s other wall, the side we didn’t film.
The course
- Previous: Lesson 7: fixes for Claude tool-call errors
- Start of the course: Lesson 1: connect Claude to SolidCraft
- The same hook and rail in FreeCAD: FreeCAD course, lesson 8
- The lab for this lesson: solidcraft-course-lab/out/sc8
Sources
Read 14 November 2026:
- Prusa: Modeling with 3D printing in mind: “at least 0.3 mm” for movable parts
- Bambu Lab wiki: X-Y hole contour compensation: holes print smaller
- Prusa: Elephant foot compensation: the first layer prints wider
- The lab: scripts, logs and every measurement above
Change notes
- 16 Nov 2026: first published, from the lesson’s lab results of 14 Nov 2026.
Not affiliated with or endorsed by SolidCraft (Tangency Labs), Prusa Research, Bambu Lab 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.