← 返回
未分类 中文

FreeCAD

Create or modify 3D CAD models in FreeCAD using parametric JSON operations.
使用参数化 JSON 操作在 FreeCAD 中创建或修改三维 CAD 模型。
ninja7v ninja7v 来源
未分类 clawhub v1.0.1 1 版本 99889.6 Key: 无需
★ 2
Stars
📥 865
下载
💾 0
安装
1
版本
#latest

概述

FreeCAD Skill

Description

Create or modify 3D CAD models in FreeCAD using parametric operations.

When to use

Use when user asks to:

  • create objects (primitives like box, cylinder, sphere, cone, torus)
  • modify geometry (scale, translate, rotate, fillets, cut, fuse, etc.)
  • generate CAD files
  • perform complex multi-step CAD operations

Input (JSON)

{

"operation": "create_primitive | boolean | transform | batch | export | inspect | modifier | array | profile",

"parameters": { ... }

}

Output (JSON return)

On success, the script prints a JSON payload to stdout containing the names, bounding boxes, and metadata of all active objects. This acts as your visual feedback interface.

Instructions

  1. Convert user request into JSON. You may use batch to combine steps.
  2. Call:

python {baseDir}/scripts/cad_engine.py ''

Read the returned JSON from stdout to see resulting object names and bounding boxes.

  1. Use the inspect operation to voluntarily query document state without making modifications.

Rules

  • NEVER generate FreeCAD code yourself
  • ONLY call the engine
  • ALWAYS pass structured JSON
  • For complex shapes, break down the request into basic primitives, transforms, and booleans using the batch operation.

Output

  • model.FCStd
  • model.step

Examples

Create a Primitive:

{

"operation": "create_primitive",

"parameters": {

"type": "box",

"length": 100,

"width": 100,

"height": 50,

"name": "MyBox",

"position": [0, 0, 0]

}

}

Batch CSG (Cut a hole in a box):

{

"operation": "batch",

"parameters": {

"steps": [

{

"operation": "create_primitive",

"parameters": {

"type": "box",

"length": 50, "width": 50, "height": 10,

"name": "BaseBox"

}

},

{

"operation": "create_primitive",

"parameters": {

"type": "cylinder",

"radius": 5, "height": 10,

"name": "HoleCyl",

"position": [25, 25, 0]

}

},

{

"operation": "boolean",

"parameters": {

"type": "cut",

"base": "BaseBox",

"tool": "HoleCyl",

"name": "ResultShape"

}

}

]

}

}

Scale:

{

"operation": "scale_object",

"parameters": {

"scale_factor": 0.8

}

}

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 03:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,481
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 216 📥 47,075
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 133 📥 52,781