Maintainers Note: This month (January 2026) we're focused on defining basic shapes, constraints and visualizations.
The new API is not yet available on pypi.
For developers, you may clone the repository and run the following commands to get started:
uv sync --all-groups --all-extras # Install dependenciesCodeToCAD is an open source mechatronics framework and digital manufacturing automation. Its goal is to allow engineers and developers to write scripts that can be checked into source control, collaborated on, and run on any supported CAD, modeling, simulation, FEA or machining software. It's a one-stop-shop for designing hardware, electrical, software, and getting it ready for manufacturing.
✅ Simplified modeling interface - it's all text! No more scrolling and clicking into sub-menus to edit your models.
🔓 Not vendor locked - your models are created in an open-source language. If you want to use another software, you do not lose the features you have defined. Note: There is no guarantee that a model created for one software will work right away for another software, but with some refactoring, it theoretically should!
🪶 Lightweight and portable. All you need is a text-editor to model. You can occasionally fire-up your modeling software to run your creations.
💪 Leverages existing programming languages, like Python. You can keep using the languages you're familiar with and love. There is no one-off language you and your team have to learn.
🚦 Easy version control. Your models are written in code, you can use industry-loved git to keep track of versions of your models.
💕 Built by people who believe in automation and that modeling workflows should be intuitive, reliable and most importantly free and open source!
Thank you to all our contributors for their invaluable time, effort, and expertise in making CodeToCAD possible: