
Freecad Scripts
This is a comprehensive reference for writing Python scripts in FreeCAD's embedded interpreter. It covers the core API patterns you need: Part module geometry creation with OpenCASCADE primitives, boolean operations, mesh conversion, Sketcher constraints, and the document object model. The examples are thorough, from basic vectors and placements through to BSpline curves and topology traversal. Use this when you're automating CAD work, building parametric FeaturePython objects, or creating custom macros and need the exact syntax for FreeCAD's somewhat quirky API. It assumes you have FreeCAD 0.19 or later installed with the bundled Python environment. The code snippets are direct and practical, which is exactly what you want when context switching between regular Python and FreeCAD's namespace.
- skills.sh installs
- 1.3K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill freecad-scripts --agent claude-codeInstalls into .claude/skills of the current project.
Files
FreeCAD Scripts
Expert skill for generating production-quality Python scripts for the FreeCAD CAD application. Interprets shorthand, quasi-code, and natural language descriptions of 3D modeling tasks and translates them into correct FreeCAD Python API calls.
When to Use This Skill
- Writing Python scripts for FreeCAD's built-in console or macro system
- Creating or manipulating 3D geometry (Part, Mesh, Sketcher, Path, FEM)
- Building parametric FeaturePython objects with custom properties
- Developing GUI tools using PySide/Qt within FreeCAD
- Manipulating the Coin3D scenegraph via Pivy
- Creating custom workbenches or Gui Commands
- Automating repetitive CAD operations with macros
- Converting between mesh and solid representations
- Scripting FEM analyses, raytracing, or drawing exports
Prerequisites
- FreeCAD installed (0.19+ recommended; 0.21+/1.0+ for latest API)
- Python 3.x (bundled with FreeCAD)
- For GUI work: PySide2 (bundled with FreeCAD)
- For scenegraph: Pivy (bundled with FreeCAD)
FreeCAD Python Environment
FreeCAD embeds a Python interpreter. Scripts run in an environment where these key modules are available:
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Backend & APIs, Git & Pull Requests, Documentation, AI & Agent Building, Automation & Workflows, Python
- First seen
- May 16, 2026
More from github/awesome-copilot
All 318- React19 Test Patterns1.3K
- Lsp Setup1.2K
- Agent Supply Chain1.1K
- Mcp Security Audit1.1K
- Arize Prompt Optimization1.1K
- Arize Ai Provider Integration1.1K
- Arize Evaluator1.1K
- React19 Concurrent Patterns1.1K
- Arize Dataset1.1K
- Arize Instrumentation1.1K
- Arize Annotation1.1K
- Integrate Context Matic1.1K
- Arize Experiment1.1K
- Arize Trace1.1K
- Arize Link1.1K
- Phoenix Evals1K
- Phoenix Tracing1K
- Onboard Context Matic1K
- Phoenix Cli1K
- React19 Source Patterns993
- Python Pypi Package Builder950
- Salesforce Apex Quality885
- React Audit Grep Patterns884
- Salesforce Flow Design839