build123d 3D Print Parts: Fits, Orientation, STL Check

    by Nate Freed

    1

    Design functional 3D-printable parts as parametric build123d scripts, calibrate fits with a printed coupon, and check every STL before slicing.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    build123d 3D Print Parts: Fits, Orientation, STL Check

    Example session with this skill installed

    I need a 3D-printable enclosure for a small circuit board. Board is 50 x 30 mm, 1.6 mm thick, tallest component 12 mm above the board. It has four mounting holes 3.5 mm in from each corner for M2.5 self-tapping screws. There's a 6 mm round connector on one short edge, centred, about 3 mm above the board surface, that needs a hole in the wall. The lid should press on (no screws). PETG, 0.4 mm nozzle, 220 x 220 x 250 bed. I haven't calibrated tolerances on this printer.

    • Read your context and instructions
    • Compiled the build123d 3d print

    Files: enclosure.py; out/enclosure_box.stl + .step, out/enclosure_lid.stl + .step (STL in print pose, STEP in assembled position); out/enclosure_plate_PETG.3mf (2 named objects).

    Fits: UNCALIBRATED defaults (SNUG 0.15/side on the lid lip, FREE 0.25 on the connector hole). Recommend printing fit_coupon.py first.

    Build: cavity, 4 pilot holes (22.81 mm^3 each) and connector teardrop (70.90 mm^3) all volume-checked OK. Assembled lid vs box interference: 0.0000 mm^3.

    Checks (verify_print.py):

    • enclosure_box.stl [PASS]: 1 body, 0 open edges, 55 x 35 x 22.6 mm, 114 layers, bed contact 1818.6 mm^2, overhang 0.4 mm^2, walls min 1.00 (floor under pilots, by design), STEP diff 0.006 %. Pose table: as exported is best; every other pose has 820+ mm^2 overhang.
    • enclosure_lid.stl [PASS]: 55 x 35 x 6 mm, walls min 1.60 (lip), STEP diff 0.002 %.

    Plate: closest pair 8.00 mm, envelope 128 x 45 x 22.6 on 220x220x250, PASS.

    Print notes: one PETG plate; box floor-down, lid face-down; no supports, no brim; 4 walls / 20 % infill (standoff walls are 1.9 mm, so they print solid).

    Open questions: lid fit uses uncalibrated SNUG; 2.2 mm pilot for M2.5 is assumed, so check against your screws; connector hole is 6.5 mm with a teardrop top.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Turns a request for a printable part into a parametric build123d Python script, so the part fits on the first or second print.

    Your agent follows a tested workflow:

    • Reads the spec back as a named parameter list before modelling anything
    • Generates a clearance coupon (hole row, slot row, pin, tab, caliper gauge), then turns your results into a fits file that every part script reads
    • Chooses the print orientation for strength first, then overhangs, adding teardrop holes and bed-edge chamfers where needed
    • Exports STEP in assembly position and STL in print pose
    • Checks each STL with a standard-library script: watertight, manifold, single body, bed fit, bed contact, overhang and flat-ceiling area, tipping ratio, sampled wall thickness, STEP cross-check, and a six-pose comparison
    • Lays out each plate in a single material, as a 3MF with named objects

    Also included: tested build123d recipes (teardrop holes, nut traps, insert pockets, snap-fit arms, pin hinges, enclosure with lid, raised text, boolean-safe printed threads) and a reference of the CAD kernel's silent failure modes, with how to avoid each one.

    Designed for FDM printing of mechanical, prismatic parts; not for organic or sculpted shapes. It does not slice, generate G-code, control a printer, repair meshes, or convert STL to STEP. Default clearances are uncalibrated guesses until you print the coupon, and fit, strain and orientation advice are rules of thumb, not a strength analysis or FEA. Wall thickness is a ray-sampling sanity check, so very small thin features between samples can be missed. The orientation ranking cannot see load direction; your agent still has to decide on strength. Tested with build123d 0.12 on Python 3.10 (macOS); older build123d releases differ in places. Raised-text labels need a system font and are skipped with a warning if none is found. The 3MF writer stores geometry and object names only, not slicer settings.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Software
    Python 3.10+build123d (in a virtualenv)

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    The
    current
    working
    directory
    or
    a
    project
    folder
    you
    choose
    STL
    STEP
    and
    JSON
    files
    passed
    on
    the
    command
    line
    (read)
    Output
    paths
    name
    with
    --out-dir
    --out
    --json
    --preview-stl
    (write);
    defaults
    are

    No network access and no package installs. Scripts read only the files named on the command line and write only to the output paths you give (or the current folder). They never delete files or change system settings. plate_layout.py contains four XML namespace identifiers that the 3MF file format requires inside every file; they are fixed names written into the output, never contacted.

    Listed7 days ago

    What's inside

    Creator

    N

    Nate Freed

    24 skills on Agensi

    Frequently Asked Questions

    No. Your agent writes and runs the scripts; you change sizes by editing the named parameters or passing --set NAME=VALUE. You do need build123d installed yourself (ideally in a virtualenv).

    Yes. Parts then use clearly labelled uncalibrated default clearances. For press fits, sliding lids or pins, printing the coupon once per printer and material is strongly recommended.

    Yes. verify_print.py and plate_layout.py work on any binary or ASCII STL using only the Python standard library. Only the optional --step cross-check needs build123d.

    No. It stops at verified STL, STEP and 3MF files plus recommended slicer settings; slicing and printing stay with you.

    New in Workflow Automation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.