FreeCAD Scripts for Openclaw

A specialized automation skill for generating production-ready FreeCAD Python scripts, macros, and parametric 3D models.

jhauga
v1.0.0
Apr 8, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install freecad-scripts

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install freecad-scripts using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is FreeCAD Scripts?

The FreeCAD Scripts skill is a powerful extension designed for engineers, designers, and developers who need to automate complex CAD workflows. It provides an expert layer for interacting with the FreeCAD Python API, allowing users to transform natural language descriptions into precise geometry, constrained sketches, and automated macros. By integrating with Openclaw Skills, this tool simplifies the process of creating custom FeaturePython objects and sophisticated 3D models.

Whether you are building custom workbenches or performing repetitive geometry operations, this skill handles the heavy lifting of API syntax and document management. It supports a wide range of modules including Part, Mesh, Sketcher, and Draft, making it an essential companion for anyone looking to push the boundaries of open-source CAD automation through Openclaw Skills.

FreeCAD Scripts Use Cases

  • Automating repetitive 3D modeling tasks and CAD operations with custom macros.
  • Creating parametric FeaturePython objects that update dynamically based on property changes.
  • Developing interactive GUI tools and Task Panels using PySide2 within the FreeCAD environment.
  • Converting and manipulating geometry between BRep solids and triangulated mesh formats.
  • Scripting complex technical drawing exports and FEM analyses for engineering documentation.

How FreeCAD Scripts Works

  1. Initializes the FreeCAD environment by accessing the active document or creating a new one via the App module.
  2. Defines 3D geometry using the Part module or creates constrained 2D geometry within the Sketcher module.
  3. Applies spatial transformations using Vectors, Placements, and Rotations to position objects accurately.
  4. Performs topological operations such as boolean fuses, cuts, and fillets to refine the 3D shapes.
  5. Executes a document recompute to update the geometry and visual representation within the FreeCAD interface.

FreeCAD Scripts Setup

To use this skill within Openclaw Skills, ensure you have FreeCAD (version 0.19 or higher) installed on your system. Most modules come bundled with the FreeCAD Python interpreter.

# Verify FreeCAD installation
freecad --version

# Ensure your environment points to the FreeCAD Python site-packages if running externally
export PYTHONPATH=$PYTHONPATH:/path/to/freecad/lib

FreeCAD Scripts Data Schema & Taxonomy

The skill organizes CAD data according to the FreeCAD document model and object hierarchy:

Component Description
FreeCAD.Document The main container for all objects, accessible via ActiveDocument.
Part::Feature Standard objects containing BRep geometry and topological data.
App::Property Data fields (Length, Angle, Vector) that drive parametric behavior.
Coin3D Scenegraph Visualization data handled through the Pivy module for GUI rendering.

FreeCAD Scripts Advanced Features

  • Support for custom workbench creation including toolbar and menu registration.
  • Advanced topological exploration to programmatically access vertices, edges, and faces.
  • Integration with Coin3D scenegraph via Pivy for low-level visualization manipulation.
  • Headless execution support for server-side CAD generation and automated exports.
  • Comprehensive selection handling for interactive scripts that respond to user sub-element clicks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*