CodeToCAD
Vendor-agnostic framework for code-based CAD automation across multiple modeling backends, writable by AI agents.
What it does and how it connects
CodeToCAD is a vendor-agnostic framework that lets engineers and AI agents define mechanical and electrical designs in one Python language, then federates the script to the modeling or design application automatically. The README quick start builds a cup from a cylinder, shells it, assigns a material, and exports an STL, or runs the same design through an interactive CLI that generates Python part files for every action.
Parts and assemblies carry 6-dof locations, constraints, materials, and fasteners, and the framework can generate dimensioned third-angle technical drawings as editable 2D parts. The same design federates to Build123D for real OpenCascade solids with native STL and STEP export, or to Blender meshes, and assemblies can be simulated in PyBullet or MuJoCo or analyzed with CalculiX finite elements.
The ECAD side describes circuits as components and nets, then federates them to schematic capture and SPICE simulation through skidl and ngspice, including KiCad netlist export. Sensors and actuators bind to a microcontroller definition, and a web app control panel can drive the same hardware or an emulated microcontroller.
Alternatives
Compare side by side- multiCAD-mcp
An MCP server that drives live AutoCAD-family sessions over COM, rather than a code-first framework federated to modeling backends.
- MecAgent
A commercial desktop copilot that acts inside a live SolidWorks session, rather than a Python framework for code-defined designs.
- Backflip AI
Rebuilds scans, photos, and drawings as parametric CAD in Fusion, rather than defining designs in code.
- Zoo (Zookeeper)
A conversational agent that writes and executes KCL inside Zoo Design Studio, rather than a Python framework federated to Build123D or Blender.
- Adam CAD
An AI copilot that works inside connected CAD and PLM from chat in Slack or email, rather than a code-first design framework.
Sources
Not verified
- License: the GitHub API returns no license and the license endpoint returns 404, so no license is stated.
- No stable GitHub releases exist; the two published releases (v0.0.2 and v0.11.1728739615, both 2026-07-06) are prereleases, so latest-release fields are null.
- No independent user voice found: recent repo activity is maintainer pull requests.
- Pricing: none stated on the repo.
- Related Error Index entries: no matching entry verified.
Last verified November 6, 2026. Listings are informational. The evidence score measures public, verifiable evidence and is not an endorsement or a compatibility claim.