One cable clip, two ways to make a parametric model
An AI-assisted SolidCraft and Blender experiment
A cable clip designed for a 5 mm cable needs to fit a 7 mm cable instead. We gave an AI assistant the same task in SolidCraft, a mechanical CAD tool, and Blender, using Geometry Nodes: build an editable model, save it, reopen it and change the cable diameter. The clip is simple enough to calculate a reference shape, which helps expose a model that looks right but measures wrong.
This tutorial reconstructs the experiment as a set of instructions and illustrative prompts. The recorded SolidCraft path was Claude Code through Claude in Chrome, using the app’s browser API. The Blender path was Claude Code through Higgsfield 3D Jutsu, running Blender Python in a hosted environment. Both connections were already configured: we did not test either setup from scratch. The prompts below are suggestions, not a transcript or a guarantee that a new run will match.
Before you start
For the SolidCraft path you need a supported Chromium browser, the Claude in Chrome extension (version 1.0.36 or later), Claude Code, and a direct eligible Anthropic plan. Sign in to Claude Code with /login; the Chrome integration documentation says API-key and long-lived-token authentication and third-party providers do not enable this integration. Organization policies may also restrict it. Follow the current documentation for installation and sign-in; we did not repeat those steps for this experiment.
Start Chrome and launch claude --chrome in a terminal. In Claude Code, use /chrome to check the connection. Open a fresh SolidCraft web app tab at app.solidcraft.io, wait for it to load, and grant only the site access you intend to use. Claude can see the browser’s signed-in state; handle logins and permission prompts yourself, and do not share credentials in a prompt. Claude may open a new tab for browser work.
First ask for a read-only check, before creating or changing a design:
In the open SolidCraft app tab, check whether
window.solidcraftis available. Usesolidcraft.commands()andsolidcraft.inspect()to report the command count and current document state; read the app’s displayed version. Do not create, edit, save, export or delete anything.
In our run the API exposed request, execute, commands, inspect and buttons, and commands() returned 950 entries. The app displayed v0.51.1; the saved .sc recorded build 6ee89ceddea77553728b3faca50fb51dbcc6ba46. A successful check today should return an API object, a command list and document state without errors; the exact count or version can differ. Record what you see and investigate differences before building. The count alone does not prove a design works.
The v0.51.1 browser API documentation describes those calls, as well as solidcraft.execute() for later edits. If the app or connection is unavailable, stop and check the documentation; do not assume the experiment ran. Browser API paths refer to the app’s virtual filesystem, not arbitrary paths on your computer.
For the Blender comparison, the recorded path used a preconfigured Claude Code connector to a Higgsfield 3D Jutsu project: the assistant submitted Python to hosted Blender and received results from that project. You need access to a compatible project and a working connector with Python execution and a way to save and reopen the resulting model. The evidence does not document the connector’s installation, authentication, available controls or how a new user enables it. Consult the service’s current instructions; if those capabilities are unavailable, stop rather than substitute an untested setup. This hosted Python workflow is not a desktop Scene Builder workflow.
As a read-only version check in that hosted Blender environment, ask the assistant to report bpy.app.version_string, bpy.app.build_hash, bpy.app.build_date and the Python version, without modifying the scene. Our recorded query reported Blender 5.2.0 LTS, build fbe6228777e7, built 2026-07-14, and Python 3.13.13 on Linux. Different versions may behave differently. The original broader inspection also created temporary scene objects, so this read-only prompt is an illustrative alternative, not the exact recorded query.
Write the rules before building
The design has a 24 mm wide base, 12 mm depth, 3 mm base thickness and 2 mm radial wall. The bore diameter is the cable diameter plus 0.4 mm; the mouth is the cable diameter minus 1 mm. The ring axis sits one bore radius above the top of the base. Only the cable diameter changes between the two main cases.
| Check | 5 mm cable | 7 mm cable |
|---|---|---|
| Bore diameter, calculated target | 5.4 mm | 7.4 mm |
| Mouth width, calculated target | 4.0 mm | 6.0 mm |
| Overall height, calculated reference | 9.9532 mm | 11.5466 mm |
| SolidCraft reported height | 9.9532 mm | 11.5466 mm |
| Blender measured mesh height | 9.953 mm | 11.545 mm |
| Volume, calculated reference | 1,190.334 mm³ | 1,270.979 mm³ |
| SolidCraft reported volume | 1,190.334 mm³ | 1,270.979 mm³ |
| Blender measured mesh volume | 1,190.230 mm³ | 1,270.854 mm³ |
The reference volumes describe the ideal shape; the table does not include measurements of the STEP exports (both sizes are checked below). The assistant wrote the models and their measurement checks, so agreement with its own checks is a consistency test, not an independent inspection. Repeating a numerical calculation using the same formula is not an independent check of that formula. Blender approximates curves with polygons, so a small mesh-volume difference is expected. Matching volume alone does not establish fit or strength.
Construct the clip
Use millimetres, with X across the base, Y along the cable and Z up. Start the base at Z = 0, centered on X and Y. Set cable_d = 5, clearance = 0.4, wall = 2, width = 12, base_w = 24, base_t = 3 and mouth_drop = 1. Derive bore_r = (cable_d + clearance) / 2, outer_r = bore_r + wall, axis_z = base_t + bore_r and mouth_w = cable_d - mouth_drop.
- Make a
base_w×width×base_tbox. Join a cylinder of radiusouter_r, lengthwidth, centered at X = 0, Y = 0 and Z =axis_z, with its axis along Y. - Cut a concentric cylinder of radius
bore_rand lengthwidth + 2 mm, running from Y =-width / 2 - 1 mmto Y =width / 2 + 1 mm. - Cut a box centered on X = 0 and Y = 0, with X width
mouth_w, Y depthwidth + 2 mmand Z heightouter_r + 1 mm. Its bottom is at Z =axis_z. This opens the top of the bore. - Measure the resulting bore, mouth, base and height. Keep the inputs and expressions editable; do not replace the model with only an exported mesh.
For example, after reviewing the read-only check, ask Claude:
In a new SolidCraft design, using the browser API and millimetres, create inputs
cable_d=5,clearance=0.4,wall=2,width=12,base_w=24,base_t=3,mouth_drop=1; derivebore_r=(cable_d+clearance)/2,outer_r=bore_r+wall,axis_z=base_t+bore_r,mouth_w=cable_d-mouth_drop. Center a base boxbase_w × width × base_ton X and Y, with bottom at Z=0. Join a Y-axis cylinder of radiusouter_rand lengthwidth, centered at X=0, Y=0, Z=axis_z. Cut a concentric Y-axis cylinder of radiusbore_r, lengthwidth+2, extending 1 mm beyond both ends. Cut a box centered on X and Y, of sizemouth_w × (width+2) × (outer_r+1), with its bottom at Z=axis_z. Keep four editable features and expressions, report errors and measured body dimensions and volume, and leave any existing design untouched. Do not export yet.
For the hosted Blender path, a separate suggested prompt is:
In a new hosted Blender model, use Geometry Nodes and millimetres. Expose
cable_d=5,clearance=0.4,wall=2,width=12,base_w=24,base_t=3,mouth_drop=1andsegments=128. Derivebore_r=(cable_d+clearance)/2,outer_r=bore_r+wall,axis_z=base_t+bore_r,mouth_w=cable_d-mouth_drop. Center abase_w × width × base_tbox on X and Y with bottom at Z=0. Join a Y-axis cylinder of radiusouter_r, lengthwidth, centered at X=0, Y=0, Z=axis_z. Cut a concentric Y-axis cylinder of radiusbore_rand lengthwidth+2, extending 1 mm past each end. Cut a box centered on X and Y, sizemouth_w × (width+2) × (outer_r+1), bottom at Z=axis_z. Use exact mesh booleans and millimetre scene scale, retain the editable node group, and report evaluated mesh dimensions and volume.
Review proposed operations before allowing them. These prompts describe the intended result; neither is a verified from-scratch recipe for establishing a connection. The recorded SolidCraft model used primitives and expressions rather than dimensioned sketches. The recorded Blender model used exact mesh booleans; its circles are polygonal approximations.
SolidCraft: edit the feature history
In SolidCraft v0.51.1’s web app, the assistant used the browser API rather than the drawing tools. It created a base box, joined an outer cylinder, then cut the bore and mouth. Eleven parameters, including four expressions, drove those four features.
After building the 5 mm design, ask the assistant to save a native .sc under a new name in /opfs/, the app’s browser storage, reload the page, reopen that path and report the parameters and measurements. Then ask it to change only cable_d to 7 mm, save a second native file in /opfs/, reload and reopen it, and change back to 5 mm. Compare each result with the table above. This virtual browser path is not a downloaded file; check actual storage and download behavior before relying on it for a handoff.
The design was saved under /opfs/ in the app’s browser storage and reopened after a page reload. The assistant changed the cable diameter from 5 to 7 mm, saved and reopened the 7 mm version in the browser, then changed it back to 5 mm. The original reported volume returned. We verified the 5 mm native .sc file on disk; the original 7 mm native file was reported in browser storage but was not recovered. In a separate retest in SolidCraft web v0.52.0, we reopened the original 5 mm file, changed only cable_d, and saved a new native copy. Comparing the two saved documents confirmed that their feature definitions were identical apart from cable_d.
In the original run, the 7 mm STEP export was imported into a new SolidCraft design. The app reported one closed body with the same height and volume, but the imported design had zero parameters and one base feature, not the original feature history. This is a same-app round trip, not proof of interoperability. Keep the native file for the tested edit history and verify an exchange file in the recipient’s tool; this result does not establish what every STEP workflow preserves.
Check the STEP file with a different CAD kernel
To look at an export from outside the app that wrote it, you need the STEP file on your computer. With the 5 mm design open, a suggested prompt is:
Export the current design as STEP to
/opfs/col6-clip-d5.step, report the file size, then offer that file as a browser download. Do not change the design.
In the original run both exports were reported in browser storage, but Chrome saved only the 5 mm file. For the separate 7 mm retest, we used File → Export → CAD & 2D → STEP in SolidCraft web v0.52.0 and verified the download. The files are not attached to this article; run the check on your own exports, substituting your own file names in the command below.
We read the original 5 mm export and the new 7 mm export with OpenCASCADE, through the cadquery-ocp 8.0.1.1.0 Python package. The checking script (save it as check_step.py) prints solid validity, units, volume, extents and the cylinder and plane positions. It gives no pass or fail verdict: you compare the values with your targets. Use Python 3.11 to 3.14, preferably in a virtual environment:
python -m pip install cadquery-ocp==8.0.1.1.0
python check_step.py col6-clip-d5.step col6-clip-d7-retest.stepTo compare the script output with the table, double the inner and outer cylinder radii. For the 7 mm retest, 3.7 mm and 5.7 mm give 7.4 mm and 11.4 mm. Subtract the X coordinates of the two opposed mouth faces to get the 6.0 mm mouth width. The script reports all X-facing planes, including the base edges; use the two planes at the mouth.
| Check | Original 5 mm STEP | 7 mm STEP retest |
|---|---|---|
| Length unit | millimetre | millimetre |
| Valid closed solid | one, 14 faces | one, 14 faces |
| Volume | 1,190.334 mm³ | 1,270.979 mm³ |
| Extents, X × Y × Z | 24 × 12 × 9.9532 mm | 24 × 12 × 11.5466 mm |
| Bore diameter (axis along Y) | 5.4 mm | 7.4 mm |
| Outer ring diameter | 9.4 mm | 11.4 mm |
| Mouth width | 4.0 mm | 6.0 mm |
Both exports match the calculated targets to within 0.0001 mm for the dimensions shown. The 7 mm result applies only to the separate v0.52.0 retest. We did not recover or independently inspect the original 7 mm export. Neither check establishes physical fit or strength.
Blender: edit the recipe that generates the mesh
In a hosted Blender 5.2.0 LTS run, the assistant built a Geometry Nodes modifier with eight exposed inputs and 128 segments around the cylinders. The saved revisions were reopened in that hosted environment, where the node group and inputs persisted. Changing the diameter rebuilt the mesh while the measured base width and depth stayed at 24 and 12 mm. The downloaded .blend files have not been opened in desktop Blender.
The recorded hosted session saved and reloaded revisions, but the evidence does not establish the controls a new user would use. If your host offers a documented way to save and reload the model, check the modifier inputs and measurements after reopening, change only cable_d to 7 mm, and save and reopen again. Do not assume that a particular revision-control UI or export route exists.
At 7 mm, applying the modifier on a copy kept the measured shape but removed the modifier’s editable inputs from that object. A temporary 7 mm STL exported and re-imported inside the host retained the measured dimensions and volume, not the node recipe. The test does not establish that the STL was downloaded or independently inspected.
The edge check reported no non-manifold edges, but the 5 mm and 7 mm meshes had two and one zero-area faces respectively. The re-imported 7 mm STL had six zero-area triangles. We did not test a slicer, so we do not know whether it would repair or reject them. Blender demonstrated a reusable procedural mesh here, not a mechanical CAD solid.
Try values outside the intended design
At 22 mm, the outer ring became 26.4 mm wide on a 24 mm base. Both models accepted that overhang without a warning. It violates this particular design’s intended boundary; an overhang is not inherently invalid in every design.
At 1 mm, the mouth formula asks for zero width. SolidCraft flagged the mouth cut but left a closed ring. Blender returned geometry without an error. Neither assistant-built model had explicit checks. For this parameter set, the intended checks include mouth_drop < cable_d and outer_r <= base_w / 2; they are not a complete guarantee of a printable or functional part.
Reproduce and hand off
Start with cable_d = 5 mm, clearance = 0.4 mm, wall = 2 mm, width = 12 mm, base_w = 24 mm, base_t = 3 mm and mouth_drop = 1 mm. Set bore_r = (cable_d + clearance) / 2, outer_r = bore_r + wall, axis_z = base_t + bore_r and mouth_w = cable_d - mouth_drop. Save and reopen the native design, change only cable_d to 7 mm, and compare the bore, mouth, fixed base and volume with the targets above. Test the boundary cases separately, then restore the nominal value.
The original run used SolidCraft web v0.51.1 (build 6ee89ceddea77553728b3faca50fb51dbcc6ba46) and hosted Blender 5.2.0 LTS (build fbe6228777e7). The two Blender .blend files and the original 5 mm SolidCraft native and STEP files were saved to disk. The 7 mm native file and the independently checked 7 mm STEP file were created in the separate SolidCraft web v0.52.0 retest. No artifacts are attached to this article. Nothing was printed, fit-tested, strength-tested or checked in a slicer. Before a production handoff, inspect the STEP geometry in the recipient’s CAD tool.