Draftwright

Turns a STEP model into a dimensioned engineering drawing (SVG, PDF or editable DXF): recognises manufacturing features, reads AP242 PMI and GD&T from the file, chooses views and dimensions, lays out standard sheets and reports what it could not state; runs as a CLI, Python package or in the browser, with an MCP server for agent use.

Open projectLibrary / CLIOpen sourceActiveMechanical

What it does and how it connects

Draftwright turns a STEP model into a dimensioned engineering drawing: SVG, PDF or editable DXF. It recognises manufacturing features (holes, counterbores, patterns, slots, pockets, turned steps, grooves, chamfers, fillets and threads, via the companion quiddity library), reads requirements from the STEP file including AP242 PMI (fits, datums, threads, surface finish, tolerances and GD&T), chooses views and dimensions, and lays them out on standard sheets with sections, details, hole tables and an ISO 7200 title block. Output is deterministic: the same inputs give the same bytes, and the SVG and PDF carry real, searchable text. Anything it cannot state is reported with a reason rather than silently dropped.

It runs four ways: a command-line tool, a Python package (pip install draftwright, including a build123d path where a shape becomes a drawing), a Rust crate, and in the browser at draftwright.io, where the site states files stay on the user's computer. Drawing behaviour is steered by a Spec, a small JSON file of settings and edits that is embedded in each output file. For assemblies, the pack command draws each made part once and writes an ISO 7573 parts list plus a CSV and JSON bill of materials; the diff command carries a Spec to a new STEP revision and marks up what changed.

Every install also ships draftwright-mcp, a local stdio MCP server: an agent client can inspect a part, edit its Spec, render the drawing and read the findings, then iterate. Two agent skills ship in the repo, draftwright-step for any STEP file and draftwright-build123d for build123d scripts. The project is written in Rust (version 0.6.0 replaced an earlier Python implementation of the same name) and is licensed AGPL-3.0, with separate commercial terms available from the maintainer. The maintainer states the code is AI-written with Claude and Codex under his direction, and that the public example drawings are generated by the stock CLI with no hand edits, mistakes included.

  • DraftAid

    A commercial AI plugin inside SolidWorks and Autodesk Inventor that converts 3D models into fabrication-ready 2D drawings, rather than a standalone open-source tool that generates the drawing from a STEP file in a CLI, in Python, in the browser or via MCP.

  • Drafter

    A commercial product that auto-generates ASME Y14.5-2018 compliant drawings with GD&T from CAD models, with bi-directional SolidWorks sync, rather than an open-source STEP-first generator that lays out the sheet itself and reports anything it could not state.

  • Foundation EGI

    A platform that detects features from 3D CAD and auto-generates GD&T drawings, process plans and documentation, rather than a drawing-only tool whose output is a dimensioned sheet generated from a STEP file.

Sources

  1. 1pzfreo/draftwright READMEgithub.com
  2. 2GitHub repo statsapi.github.com
  3. 3Draftwright homepagedraftwright.io

Not verified

  • Real user voices: no real linked post read for this page; the repo was created on 2026-10-07 and has 47 stars.
  • Related Error Index entries: no matching entry verified.
  • Commercial licence pricing: the README offers separate commercial terms via the maintainer but states no price.
  • Paid tiers: draftwright.io states the browser editor is free and that a free account adds STEP export; any paid tier is not stated.

Last verified November 18, 2026. Listings are informational. The evidence score measures public, verifiable evidence and is not an endorsement or a compatibility claim.