github avatar

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-code

Installs 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
1ognjengt avatarmarketing-ideasognjengt/founder-skillsProduces the best marketing ideas for your business by analyzing your FOUNDER_CONTEXT and matching it against a curated database of 170+ proven marketing strate1.3Kskills.sh installs
2cxuu avatargo-defensivecxuu/golang-skillsUse when hardening Go code at API boundaries — copying slices/maps, verifying interface compliance, using defer for cleanup, time.Time/time.Duration, or avoidin1.3Kskills.sh installs
3neolabhq avatarsetup-serena-mcpneolabhq/context-engineering-kitGuide for setup Serena MCP server for semantic code retrieval and editing capabilities1.3Kskills.sh installs
4fluxcd avatargitops-knowledgefluxcd/agent-skillsFlux CD and Flux Operator expert — answers questions and generates schema-validated YAML for all Flux CRDs (not repo auditing or live cluster debugging). Use wh1.3Kskills.sh installs
5langchain-ai avatarquery-writinglangchain-ai/deepagentsWrites and executes SQL queries from simple SELECTs to complex multi-table JOINs, aggregations, and subqueries. Use when the user asks to query a database, writ1.3Kskills.sh installs
6langchain-ai avatarschema-explorationlangchain-ai/deepagentsLists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about 1.3Kskills.sh installs