AI-assisted 3D modelling for printing: a practical guide

Published · Updated · 25 min read

Cable organiser, bearing mount and shelf bracket modelled with AI

Short answer: Claude and ChatGPT do not draw in 3D, but they write code that generates the part. You describe the part (in words, with a drawing or from an STL you already have), they give you a Python script, you run it and get an STL to print and a STEP file to keep editing. It works very well for simple technical parts: brackets, lids, flanges, clips and adapters. It works poorly for organic shapes such as figures or ergonomic grips.

In this guide we work through three real examples from start to finish: text only, from a dimensioned drawing and by editing a downloaded STL. All scripts and files are available as a ZIP download.

We worked through all three examples step by step, then ran the same prompts in the Claude and ChatGPT apps to compare. The screenshots are real, taken in November 2026 (the prompts and answers are in Spanish, as in the Spanish version of this article). At the end there is a table with how each one did.

How does a text AI “model” anything?

Chat AIs have no CAD program inside. What they do very well is write code, so we use a Python library that turns code into 3D solids:

  • build123d (used here) and CadQuery are parametric CAD libraries. They use the same kernel as many professional programs (OpenCascade), work with exact solids and export STL and STEP.
  • trimesh reads and edits existing STL meshes.

The workflow is always the same:

  1. Describe the part and ask for a script.
  2. Run the script and look at the result.
  3. Tell the AI what to fix. Repeat until it is right.
  4. Upload the STL to the calculator or print it yourself.

Some “text-to-3D” generators create a mesh straight from a sentence. They are fine for figures and decorations, but they do not respect exact dimensions. For a part that has to fit, the code route is far more reliable.

What do I need to install?

If your assistant can run code (Claude and ChatGPT can in their apps), it may hand you the STL directly and you install nothing. But that does not always work: in our test ChatGPT did not have build123d in its environment. To edit and regenerate the part whenever you like, it is easiest to have it on your own computer. It takes about 10 minutes, once.

On a Mac:

  1. Download Python from python.org (the yellow “Download Python” button) and install it like any other app.
  2. Open the Terminal app: press Cmd + Space, type “Terminal” and press Return.
  3. Paste this line into Terminal and press Return. It takes a few minutes:
pip3 install build123d trimesh manifold3d
  1. Save the script the AI gives you in a folder, for example on the Desktop, as part.py.
  2. In Terminal type cd (with a space), drag the folder into the window and press Return. Then type python3 part.py and press Return. The STL and STEP files appear in that same folder.

On Windows:

  1. Download Python from python.org. On the first screen of the installer, tick “Add python.exe to PATH”: without it the commands below will not work.
  2. Open PowerShell: press the Windows key, type “PowerShell” and press Enter.
  3. Type this and press Enter:
pip install build123d trimesh manifold3d
  1. Save the script in a folder as part.py.
  2. In PowerShell type cd (with a space), drag the folder into the window, press Enter, then python part.py.

If any step shows an error, copy the whole message and paste it into the chat with the AI: that is exactly the kind of problem it solves well.

To view the part, your slicer works (Bambu Studio, PrusaSlicer, Cura), or the 3D viewer in our calculator. If you will work with code often, the OCP CAD Viewer extension for VS Code shows the part while you edit.

How to write a good prompt for a part

Most failures come from an incomplete prompt. The AI fills the gaps with assumptions, and an assumed dimension is a part that does not fit. Always include:

  1. What the part is and what it does. That tells the AI which dimensions are critical.
  2. Every dimension in millimetres, and where it is measured from.
  3. How it will be printed: FDM, material and nozzle (0.4 mm), so it respects minimum thicknesses and orientation.
  4. Clearances: what fits with what, and how tightly.
  5. Code format: dimensions as variables at the top, export STL and STEP, and print the final size so you can check it.

And one useful rule: ask it to check with you if any data is missing instead of inventing it.

Example 1: a part described in text only

We want an organiser to hold three cables under a desk. There is no drawing, just an idea and a few dimensions.

Prompt:

Write a Python script with build123d that generates a part for 3D printing (FDM, PLA, 0.4 mm nozzle). The part is a cable organiser screwed to the underside of a desk. It must hold 3 cables of 6 mm diameter, in a row, 12 mm apart centre to centre. The cables snap in through an opening. Flat 4 mm base with 2 countersunk holes for 4 mm wood screws, one at each end. All dimensions in mm, as variables at the top of the script. Export STL and STEP, and print the overall size at the end. If any data is missing, ask me first.

The first version works, but looking at it reveals two problems: the clip tips are thin and sharp (in PLA they would snap when you push the cable in) and the 10 mm wide base is too narrow to screw down firmly.

First version: thin clip tips and a narrow base

Version 1: 70 × 10 × 12 mm. Fine on screen, but the tips would break.

Second prompt:

The clip tips are sharp and will break in PLA. Increase the clip wall to 2.4 mm, add a 1.2 mm lead-in chamfer at 45° on each opening and widen the part to 14 mm.

Second version: lead-in chamfer and 14 mm base

Version 2: 71 × 14 × 12 mm, 5.6 cm³. Ready to print with the base on the bed.

The final script starts with the dimensions:

# Under-desk cable organiser, screw-mounted — build123d
from build123d import *

# ── Dimensions (mm) ──────────────────────────
CABLE_DIA   = 6.0    # cable diameter
N_CABLES  = 3
PITCH      = 12.0   # centre-to-centre spacing
CLEARANCE   = 0.2    # total clearance on the diameter
WALL     = 2.4    # clip wall
OPENING  = 4.6    # opening width (smaller than the cable: snaps in)
WIDTH     = 14.0   # part width along the cable
BASE_T    = 4.0    # base thickness
SCREW  = 4.0    # wood screw
MARGIN    = 9.0    # room for each screw at the ends
CHAMFER   = 1.2    # 45° lead-in chamfer (v2)
# ...
Show the full script
# Under-desk cable organiser, screw-mounted — build123d
from build123d import *

# ── Dimensions (mm) ──────────────────────────
CABLE_DIA   = 6.0    # cable diameter
N_CABLES  = 3
PITCH      = 12.0   # centre-to-centre spacing
CLEARANCE   = 0.2    # total clearance on the diameter
WALL     = 2.4    # clip wall
OPENING  = 4.6    # opening width (smaller than the cable: snaps in)
WIDTH     = 14.0   # part width along the cable
BASE_T    = 4.0    # base thickness
SCREW  = 4.0    # wood screw
MARGIN    = 9.0    # room for each screw at the ends
CHAMFER   = 1.2    # 45° lead-in chamfer (v2)

r_in  = (CABLE_DIA + CLEARANCE) / 2
r_out = r_in + WALL
length = (N_CABLES - 1) * PITCH + 2 * r_out + 4 * MARGIN
z_c   = BASE_T + r_in + 0.6          # cable centre height

with BuildPart() as part:
    # base
    with BuildSketch():
        RectangleRounded(length, WIDTH, 2)
    extrude(amount=BASE_T)
    # clips
    xs = [(i - (N_CABLES - 1) / 2) * PITCH for i in range(N_CABLES)]
    for x in xs:
        with Locations(Location((x, 0, z_c), (90, 0, 0))):
            Cylinder(r_out, WIDTH)
    for x in xs:   # joint between clip and base
        with Locations((x, 0, BASE_T)):
            Box(2 * r_out, WIDTH, z_c - BASE_T, align=(Align.CENTER, Align.CENTER, Align.MIN))
    for x in xs:   # cable bore and opening
        with Locations(Location((x, 0, z_c), (90, 0, 0))):
            Cylinder(r_in, WIDTH + 2, mode=Mode.SUBTRACT)
        with Locations((x, 0, z_c)):
            Box(OPENING, WIDTH + 2, r_out + 2, align=(Align.CENTER, Align.CENTER, Align.MIN), mode=Mode.SUBTRACT)
        # v2: lead-in chamfer, so the cable goes in easily and the tips are not sharp
        z_top = z_c + r_out
        with BuildSketch(Plane.XZ):
            Polygon((x - OPENING / 2, z_top - 2 * CHAMFER), (x + OPENING / 2, z_top - 2 * CHAMFER),
                    (x + OPENING / 2 + 2 * CHAMFER, z_top + 0.01), (x - OPENING / 2 - 2 * CHAMFER, z_top + 0.01), align=None)
        extrude(amount=WIDTH, both=True, mode=Mode.SUBTRACT)
    # countersunk holes
    x_t = length / 2 - MARGIN
    with Locations(*[(s * x_t, 0, BASE_T) for s in (-1, 1)]):
        CounterSinkHole(radius=(SCREW + 0.5) / 2, counter_sink_radius=4.25, depth=BASE_T)

bb = part.part.bounding_box()
print(f"Size: {bb.size.X:.1f} × {bb.size.Y:.1f} × {bb.size.Z:.1f} mm, volume {part.part.volume/1000:.2f} cm³")
export_stl(part.part, "cable_organiser_v2.stl")
export_step(part.part, "cable_organiser_v2.step")

Note two details worth asking for every time: dimensions are variables (switching to 8 mm cables means changing one number), and the script prints the final size, so you can rule out a scale error in a second.

The same prompt in Claude

In the Claude app, the same prompt did not go straight to code either. Claude asked four questions, each with a recommended option: clip length along the cable, which way the opening faces, how firmly it should grip, and the screw head size.

Claude asks about the clip length before writing the script

Claude asks one question at a time, with options to pick from.

With the answers it wrote the script, ran it itself and handed over the STL and STEP. The part measures 60.2 × 15 × 11.3 mm. The screw holes are 4.5 mm (with clearance) and each clip opening has a 0.8 mm lead-in chamfer. It also notes that the part prints without supports and which variable to change if the cable goes in too loose or too tight.

Claude’s summary: part size, clips, base and printing

Claude ran the script and explains how the part is built.

The same prompt in ChatGPT

ChatGPT did exactly what the last sentence of the prompt asked: it asked questions before writing any code. It wanted to know which kind of clip we preferred and the screw head diameter, and it offered two options with pictures.

ChatGPT asks which clip type and screw to use before writing the script

ChatGPT asks to confirm the clip type and the screw head diameter.

ChatGPT form for choosing the clip type and countersink

The answers are one click each (the screenshot shows the defaults). We chose “integrated channels” and an 8 mm head.

It then wrote the script and a table of dimensions: 58 × 12 × 13 mm, 6.4 mm channels and a 4.8 mm opening. It also added a useful warning of its own: in PLA the clip lips may crack after repeated use, so for frequent use it recommends PETG. That is the same problem we found in our version 1.

When we pressed “Run” inside the chat, the code did not run: ChatGPT’s environment did not have build123d installed. That is why it is best to run the scripts on your own computer.

ModuleNotFoundError: No module named build123d when running the script in ChatGPT

The chat’s execution environment did not have build123d installed.

Example 2: a part from a dimensioned drawing

Now we have a drawing: a mount for a 608 bearing (22 × 7 mm), with a top view and a section. It can be a CAD drawing, a PDF or a photo of a hand sketch, as long as the dimensions are legible.

Drawing of the 608 bearing mount with top view and section A-A

Prompt (with the drawing attached):

I am attaching the drawing of a part. Model it with build123d exactly to the dimensions. First list every dimension you read on the drawing so I can check them. It will be printed in FDM, in PETG. The Ø22 seat is for a press-fit 608 bearing: apply a 3D printing allowance and keep it in a separate variable. Export STL and STEP, and print the overall size and the hole diameters of the model.

The key part of this prompt is “first list the dimensions”. If the AI misreads a dimension (38 as 36, or a radius as a diameter), you catch it before it reaches the model. In this example it read every dimension correctly.

The second key part is the FDM allowance. On the drawing the seat is Ø22, but in FDM holes come out slightly smaller. So the script keeps it in a separate variable, SEAT_ALLOWANCE = 0.15, and notes that it should be checked with a test print. The drawing stays the drawing, and the printing correction is kept apart from it.

# 608 bearing mount — from the drawing "plano_soporte_608.png" — build123d
from build123d import *

# ── Drawing dimensions (mm) ──────────────────
PLATE_X, PLATE_Y, PLATE_T = 70, 50, 5
CORNER_R   = 6
HOLE_X, HOLE_Y  = 58, 38      # hole spacing
HOLE_D        = 5.5         # 4 through holes
BOSS_D   = 34
TOTAL_H  = 12
SEAT_D      = 22          # 608 bearing: 22 × 7
SEAT_DEPTH   = 7
BORE_D      = 12          # central through hole

# ── FDM printing allowance (not on the drawing) ──
# In FDM, holes come out slightly smaller. For a press fit in PETG
# we start with +0.15 mm on the diameter. Check with a test print.
SEAT_ALLOWANCE = 0.15
# ...
Show the full script
# 608 bearing mount — from the drawing "plano_soporte_608.png" — build123d
from build123d import *

# ── Drawing dimensions (mm) ──────────────────
PLATE_X, PLATE_Y, PLATE_T = 70, 50, 5
CORNER_R   = 6
HOLE_X, HOLE_Y  = 58, 38      # hole spacing
HOLE_D        = 5.5         # 4 through holes
BOSS_D   = 34
TOTAL_H  = 12
SEAT_D      = 22          # 608 bearing: 22 × 7
SEAT_DEPTH   = 7
BORE_D      = 12          # central through hole

# ── FDM printing allowance (not on the drawing) ──
# In FDM, holes come out slightly smaller. For a press fit in PETG
# we start with +0.15 mm on the diameter. Check with a test print.
SEAT_ALLOWANCE = 0.15

with BuildPart() as part:
    with BuildSketch():
        RectangleRounded(PLATE_X, PLATE_Y, CORNER_R)
    extrude(amount=PLATE_T)
    Cylinder(BOSS_D / 2, TOTAL_H, align=(Align.CENTER, Align.CENTER, Align.MIN))
    # bearing seat from the top
    with Locations((0, 0, TOTAL_H)):
        Cylinder((SEAT_D + SEAT_ALLOWANCE) / 2, SEAT_DEPTH, align=(Align.CENTER, Align.CENTER, Align.MAX), mode=Mode.SUBTRACT)
    # central through hole
    Cylinder(BORE_D / 2, TOTAL_H, align=(Align.CENTER, Align.CENTER, Align.MIN), mode=Mode.SUBTRACT)
    # 4 mounting holes
    with Locations(*[(sx * HOLE_X / 2, sy * HOLE_Y / 2) for sx in (-1, 1) for sy in (-1, 1)]):
        Cylinder(HOLE_D / 2, PLATE_T, align=(Align.CENTER, Align.CENTER, Align.MIN), mode=Mode.SUBTRACT)

p = part.part
bb = p.bounding_box()
print(f"Size: {bb.size.X:.1f} × {bb.size.Y:.1f} × {bb.size.Z:.1f} mm")
print(f"Volume: {p.volume/1000:.2f} cm³  ·  approx. weight in PETG: {p.volume/1000*1.27:.0f} g (solid)")
# check: diameters of the circular edges
ds = sorted({round(e.radius * 2, 2) for e in p.edges().filter_by(GeomType.CIRCLE)})
print("Diameters found:", ds)
export_stl(p, "bearing_mount_608.stl")
export_step(p, "bearing_mount_608.step")

Output:

Size: 70.0 × 50.0 × 12.0 mm
Volume: 19.96 cm³  ·  approx. weight in PETG: 25 g (solid)
Diameters found: [5.5, 12.0, 22.15, 34.0]

3D model of the 608 bearing mount

The list of diameters found lets you compare the model with the drawing in seconds.

The same drawing in ChatGPT

We gave it the same drawing with the same prompt. ChatGPT read every dimension correctly, explained how it interpreted section A-A and, in “Work” mode, ran the script and checked the result: 70 × 50 × 12 mm and diameters 4 × Ø5.5, Ø12 and Ø21.95.

ChatGPT lists the drawing dimensions and checks the generated model

ChatGPT lists the dimensions before modelling and verifies the diameters of the final model.

Note one difference: ChatGPT applied a −0.05 mm allowance (a smaller seat, so the bearing goes in tighter), while we used +0.15 mm (because FDM holes already come out smaller). Both are reasonable starting points, and both AIs say the same thing: the real value is tuned with a test print on your printer. That is why the allowance belongs in a separate variable.

Example 3: editing an STL you already have

This is the most common case: you downloaded a shelf bracket, but you need the arm 25 mm longer and two countersunk holes in the upright. If your assistant can read files and run code, as Claude and ChatGPT can in their apps, the simplest route is to attach the STL and ask for the change in one message:

I am attaching soporte_estante.stl, a downloaded shelf bracket. First analyse it and tell me what you see: whether the mesh is watertight, its size, where the origin is and what parts it has. Then modify it with Python (trimesh + manifold3d): 1) lengthen the horizontal arm by 25 mm without distorting the gusset or the existing hole; 2) add 2 holes for 4 mm screws in the upright, countersunk at 90° on the arm side, 30 mm high and ±12 mm from the centre. Finally check that the mesh is still watertight and export the STL.

Claude analysed the file and described the part piece by piece: upright, arm, gusset, and a Ø5 mm hole 12 mm from the tip. Then it cut the mesh at x = 38 mm, a straight section with no details, and stretched only that strip.

Claude describes the original STL and the changes made

Claude’s STL analysis and list of changes.

Three good details in its result: it made the holes Ø4.5 mm with clearance for the screw, it measured the diameters on the final part, and it found a fault we had missed. Saving to STL rounds the coordinates, which produced zero-area triangles and broke the watertight mesh. It fixed this and checked the exported file again. Result: 85 × 40 × 50 mm, 22.55 cm³.

Parameters of Claude’s script for modifying the STL

The key dimensions sit at the top of the script, as variables.

If your assistant cannot open the file: two steps

Some assistants work with text only. To them an STL is thousands of triangles with no “holes” or “arms”. In that case you work in two steps.

Step 1. Ask for a script that analyses the file:

I have a file called soporte_estante.stl. Write a Python script with trimesh that tells me whether the mesh is watertight, how many bodies it has, its size, where the origin is and, every 5 mm along the X axis, how tall the part is. I will paste the result back to you.

# Step 1: analyse an STL the AI cannot see
import trimesh
m = trimesh.load("soporte_estante.stl")
print("Watertight:", m.is_watertight)
print("Separate bodies:", len(m.split(only_watertight=False)))
print("Size (mm):", [round(float(v), 2) for v in m.extents])
print("Min:", [round(float(v), 2) for v in m.bounds[0]], " Max:", [round(float(v), 2) for v in m.bounds[1]])
print("Volume: %.2f cm³" % (m.volume / 1000))
# profile: part height at each X position
import numpy as np
for x in range(0, 61, 5):
    s = m.section(plane_origin=[x + 0.5, 0, 0], plane_normal=[1, 0, 0])
    if s is not None:
        b = s.bounds
        print(f"  x={x+0.5:>5}: Y {b[0][1]:.1f}…{b[1][1]:.1f}, Z {b[0][2]:.1f}…{b[1][2]:.1f}")

Output:

Watertight: True
Separate bodies: 1
Size (mm): [60.0, 40.0, 50.0]
Min: [0.0, -20.0, 0.0]  Max: [60.0, 20.0, 50.0]
Volume: 18.75 cm³
  x=  0.5: Y -20.0…20.0, Z 0.0…50.0
  x=  5.5: Y -20.0…20.0, Z 0.0…37.9
  x= 10.5: Y -20.0…20.0, Z 0.0…31.0
  x= 15.5: Y -20.0…20.0, Z 0.0…24.1
  x= 20.5: Y -20.0…20.0, Z 0.0…17.2
  x= 25.5: Y -20.0…20.0, Z 0.0…10.2
  x= 30.5: Y -20.0…20.0, Z 0.0…4.0
  x= 35.5: Y -20.0…20.0, Z 0.0…4.0
  x= 40.5: Y -20.0…20.0, Z 0.0…4.0
  x= 45.5: Y -20.0…20.0, Z 0.0…4.0
  x= 50.5: Y -20.0…20.0, Z 0.0…4.0
  x= 55.5: Y -20.0…20.0, Z 0.0…4.0

With these numbers the AI can now “see” the part: a 50 mm upright at x = 0, a gusset sloping down to x ≈ 30 mm and, from there, a straight 4 mm thick arm to x = 60 mm.

Step 2. Ask for the change, with the output of step 1:

This is the analysis output: [paste the text]. The upright is at x = 0…4 and the face towards the arm is x = 4. I want to: 1) lengthen the arm by 25 mm without distorting the gusset or the existing hole; 2) add 2 holes for 4 mm screws, countersunk at 90° on the arm side, at y = ±12 mm, z = 30 mm. Use trimesh with manifold3d for the boolean operations and check at the end that the mesh is still watertight.

# Step 2: lengthen the arm by 25 mm and add 2 countersunk holes in the upright
import numpy as np
import trimesh

INPUT = "soporte_estante.stl"
OUTPUT  = "shelf_bracket_mod.stl"

EXTEND   = 25.0   # mm added to the arm
X_CUT   = 40.0   # cutting plane: straight arm, away from the gusset and holes
SCREW_D    = 4.5    # hole for a 4 mm screw
HEAD_D  = 9.0    # countersink diameter (90°)
FACE_X    = 4.0    # front face of the upright (arm side)
HOLES_YZ    = [(-12, 30), (12, 30)]   # hole positions (Y, Z)
# ...
Show the full script
# Step 2: lengthen the arm by 25 mm and add 2 countersunk holes in the upright
import numpy as np
import trimesh

INPUT = "soporte_estante.stl"
OUTPUT  = "shelf_bracket_mod.stl"

EXTEND   = 25.0   # mm added to the arm
X_CUT   = 40.0   # cutting plane: straight arm, away from the gusset and holes
SCREW_D    = 4.5    # hole for a 4 mm screw
HEAD_D  = 9.0    # countersink diameter (90°)
FACE_X    = 4.0    # front face of the upright (arm side)
HOLES_YZ    = [(-12, 30), (12, 30)]   # hole positions (Y, Z)

m = trimesh.load(INPUT)

# 1) Lengthen: everything beyond the cutting plane is moved along +X.
#    Works because the arm is a straight prism in that zone (we checked it in step 1).
v = m.vertices.copy()
assert not np.any(np.isclose(v[:, 0], X_CUT)), "There are vertices exactly on the cutting plane"
v[v[:, 0] > X_CUT, 0] += EXTEND
m = trimesh.Trimesh(v, m.faces, process=True)

# 2) Countersunk holes: through cylinder + cone, along the X axis
cutters = []
for y, z in HOLES_YZ:
    cyl = trimesh.creation.cylinder(radius=SCREW_D / 2, height=20, sections=64)
    h = (HEAD_D - SCREW_D) / 2                     # cone depth at 90°
    cone = trimesh.creation.cone(radius=HEAD_D / 2 + 1, height=h + 1 + HEAD_D / 2 + 1, sections=64)
    # the cone points towards -X, its base 1 mm outside the front face
    cone.apply_transform(trimesh.transformations.rotation_matrix(-np.pi / 2, [0, 1, 0]))
    cone.apply_translation([FACE_X + 1, 0, 0])
    cyl.apply_transform(trimesh.transformations.rotation_matrix(np.pi / 2, [0, 1, 0]))
    for t in (cyl, cone):
        t.apply_translation([0, y, z])
        cutters.append(t)
m = trimesh.boolean.difference([m] + cutters, engine="manifold")

print("Watertight:", m.is_watertight, "· Size:", [round(float(x), 2) for x in m.extents], "· Volume: %.2f cm³" % (m.volume / 1000))
m.export(OUTPUT)

Output:

Watertight: True · Size: [85.0, 40.0, 50.0] · Volume: 22.41 cm³

Original shelf bracket in grey and modified one in amber

Grey: the original STL. Amber: the modified one, with an 85 mm arm and two countersunk holes.

The trick for lengthening is to cut at a plane in a straight section (here x = 40 mm) and move everything beyond it. That is why step 1 mattered: we knew the arm is a straight prism between x = 30 and x = 60. Cut through the gusset and you distort it.

Limits of editing an STL: lengthening straight sections, adding or filling holes, cutting, joining parts and adding simple ribs all work well. Changing a radius, the thickness of a curved wall or a complex shape is much harder on a mesh. In those cases it is better to redraw the part as a solid (as in example 2) using the STL’s dimensions.

The same STL in ChatGPT

We attached the STL to ChatGPT directly and asked for both changes in one message. Because it can read the file, it did the analysis itself: watertight mesh, 60 × 40 × 50 mm, origin at the base of the upright, 4 mm arm and gusset, and one Ø5 mm hole.

ChatGPT analyses the STL and describes the changes it made

ChatGPT’s STL analysis and list of changes.

The result matches ours: 85 × 40 × 50 mm, watertight, and almost the same volume. But it got there another way: it could not install manifold3d, so it redrew the part as a solid in CadQuery from the STL’s dimensions instead of editing the triangles. That is exactly what we recommend above for more complex changes.

ChatGPT final check: 85 × 40 × 50 mm and watertight mesh

ChatGPT checks size and watertightness, and explains the technical limitation it hit.

One detail to fix: it made the new holes Ø4 mm for 4 mm screws, with no clearance. The screw would not go in, or only by force. We used 4.5 mm. It is one of the typical mistakes listed below: what you do not ask for, the AI does not always think of.

Claude and ChatGPT: test summary

Claude ChatGPT
Example 1: did it ask first? Yes, 4 questions with a recommended option Yes, 2 questions with pictures
Example 1: did it run the code? Yes, delivered STL and STEP No: build123d missing in the chat
Example 2: reading the drawing Every dimension right Every dimension right
Example 2: seat allowance +0.15 mm −0.05 mm
Example 3: method Edited the original mesh Redrew the part in CadQuery
Example 3: holes for 4 mm screws Ø4.5, with clearance Ø4, no clearance
Response time 2–4 min per example 2–8 min per example

Both work for simple technical parts, and both ask questions if you tell them to. The differences were in the details we had not specified: clearances, allowances, and what to do when a library is missing. So the golden rule is the same with any AI: check the critical dimensions before you print.

Typical AI mistakes and how to spot them

  • It invents dimensions you did not give. Ask it to list the dimensions and to ask about any that are missing.
  • It mixes up axes or orientation. The part comes out “lying down” or with the hole on the wrong face. Ask it to state in a comment which face goes on the bed.
  • It ignores printing. 0.5 mm walls, impossible overhangs or holes with no clearance. That is why the prompt must state FDM, material and nozzle.
  • The code does not run. Libraries change between versions. Paste the full error into the chat: it usually fixes it first time.
  • The part “looks” right but measures wrong. Make the script print size, volume and diameters, and compare them with your drawing.
  • Threads and gears. The AI can model them, but exact profiles are tricky. For small threads, a brass insert or a self-tapping screw is a better choice.

When is it not worth it?

  • Organic shapes: figures, ergonomic grips, smooth surfaces. Code is not the right tool there.
  • Parts with many related dimensions (an assembly of several mating parts): every change turns into a long conversation. A visual CAD program (Fusion, FreeCAD, Onshape) is faster.
  • Copying a broken part accurately: the hard part is not modelling but measuring. Read how to measure a broken part first.

What about privacy?

Everything you attach in a chat leaves your computer. For your own parts that rarely matters, but do not upload client drawings, parts under a non-disclosure agreement, or designs you have not yet protected. If you need AI help with something like that, describe it with generic dimensions instead of the original drawing, or use your account setting that stops conversations being used to train the model.

Prompt template to copy

Write a Python script with build123d that generates [what the part is and what it does]. It will be printed in FDM, in [material], with a 0.4 mm nozzle, standing on [face]. Dimensions in mm: [list of dimensions]. Fits: [what fits with what, and how tightly]. Put all dimensions as variables at the top, export STL and STEP, and print the overall size and volume at the end. Before writing the code, list the dimensions and ask me if any are missing.

From STL to printed part

Once you have the STL, go through the 7 most common STL mistakes and upload it to our calculator: you will see weight, time and price instantly, and you can choose infill, walls and layer height. Is it worth it? Each example took the AI 2 to 8 minutes, plus the time to check the result and, the first time, to install Python. If the AI does not get there, or you would rather not wrestle with code, we design the part for you: a simple part costs from €28, with a fixed price before we start. More in custom CAD design.