freecad
Installation
SKILL.md
FreeCAD Control
FreeCAD (/Applications/FreeCAD.app) is scriptable in Python against the FreeCAD /
FreeCADGui / Part / Sketcher / PartDesign / Draft / Mesh / TechDraw modules.
Drive it through the FreeCAD Bridge — a small script running inside a running FreeCAD
GUI that executes whatever build script is POSTed to 127.0.0.1:8735. Because the script
runs in the live session on the GUI thread, the viewport updates as you build and
Gui.* / saveImage work directly. Everything below was proven on FreeCAD 1.1.1.
- scripts/freecad-bridge.py — the bridge to run inside FreeCAD.
- scripts/freecad-send.sh — send a
.pyfile (or-c 'inline code') to the bridge and print its captured output;--pingchecks it's up. - scripts/example-bracket.py — a complete build→measure→export→ screenshot script to copy from.
- references/api-reference.md — condensed, version-checked Python API (App/document, Part, Sketcher, PartDesign, Draft, Mesh, Import/Export, GUI). Read it before writing anything past the cheatsheet below.