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.3.
- 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→check→measure→ export→screenshot script to copy from.
- references/api-reference.md — condensed, version-checked Python API (document, Part, Sketcher attachment, PartDesign features, Draft, Mesh, TechDraw drawings, import/export, GUI). Read it before writing anything past the cheatsheet below — several PartDesign/TechDraw properties are not what you'd guess.