Generators & UtilitiesChinese

Create Synthetic CAD Models (STEP)

Create Synthetic CAD Models (STEP) builds real CAD solids from a menu of preset parametric shapes/designs and writes them as STEP files. On Dragonfly 2027.1+, it can also load a STEP into the current scene as a Mesh with

Updated 2026-07-26User manual

Create Synthetic CAD Models(创建合成 CAD 模型 · STEP)

Dragonfly Prototype Apps · Create Synthetic CAD Models (STEP)...

版本 1.0 · 2026-07-26


中文手册

目录

1. 简介

2. 支持的形状

3. 使用步骤

4. 环境需求

5. 提示

1. 简介

Create Synthetic CAD Models (STEP) 从多种预设的参数化形状/设计中生成真实的 CAD 实体,并保存为 STEP 文件;在 Dragonfly 2027.1 及以上版本中还可一键把 STEP 作为网格(Mesh)加载到当前场景。

几何由开源库 cadquery(OpenCASCADE / cadquery-ocp,Apache-2.0)生成,运行在插件专用的虚拟环境(venv)子进程中,不会影响 Dragonfly 自身的 Python。所有尺寸单位为毫米(mm)。

本功能由第三方(Prototype Labs / Prototype Apps)提供,非 Dragonfly 官方开发或支持,使用风险自负。

2. 支持的形状

形状按三组组织,可在下拉框中选择:

  • 基本体(Primitives):长方体、圆柱、球、圆锥/圆台、圆环、四棱锥、楔形。
  • 机械零件(Mechanical Parts):六角螺栓、六角螺母、垫圈、正齿轮、L 形支架、螺栓圆法兰、管件。
  • 测试标定件(Test Artifacts):孔阵列板(CAD 孔隙率假体)、阶梯规、球-柱标定件(CT)、多孔立方体、圆角/倒角块。

选择形状后,右侧会自动列出该形状的参数(如长/宽/高、半径、齿数、孔径等),可逐一调整。

3. 使用步骤

1. 从下拉框选择一个形状/设计,并设置其参数。

2. 在“Output”中确认或用“Browse…”选择 STEP 保存文件夹。

3. 首次使用:点击一次“⚙ 设置环境”,构建 cadquery 虚拟环境(需联网,约数百 MB)。

4. 点击“创建 CAD 模型并保存 STEP 文件”,稍候即可在所选文件夹得到 <形状>_<时间戳>.step。

5. (可选)点击“加载到 Dragonfly”,把刚生成的 STEP 作为网格导入当前场景。

4. 环境需求

在 Dragonfly 2027.1(Python 3.14)上不能用 Dragonfly 自带的 Python 创建该环境。请安装独立的 64 位 CPython 3.12,并将插件的 cad_config.json 中的 base_python 设为其 python.exe 路径。Dragonfly 2025.1 可以使用自带的 Python。

首次点击“设置环境”会在 %LOCALAPPDATA%\DragonflyPrototypeLabs\CreateSyntheticCAD\venv(较短路径,以规避 Windows 路径长度限制)构建 venv,并安装 cadquery + numpy。之后生成不再需要联网,也无需 GPU。

“加载到 Dragonfly”仅在 Dragonfly 2027.1 及以上版本可用(更早版本没有 STEP 导入)。在旧版本中该按钮会被禁用并给出提示;STEP 文件仍可正常生成、供其它软件使用。

5. 提示

  • STEP 是 B-rep(精确边界表示)实体;加载到 Dragonfly 时会经 OpenCASCADE 三角化为网格(MeshHelper.importSTEPFile)。
  • 生成的 STEP 也可直接用于网格划分、有限元/CFD 仿真、逆向、或作为算法测试的标准件。
You’ve reached the end of this manual.Explore the library →

PROTOTYPE APPS

Manual assistant

Find an app, understand a parameter, or follow a workflow. Answers include links to the manuals.

Questions and answers are saved long-term to your account. You and site administrators can view them; they may be reviewed to improve the product. Do not submit passwords or confidential data.

All models share a daily allowance. Larger models use more. Chat pauses at the daily protection limit; manual search remains available.

Search the manuals

Cloudflare AI receives your question, recent conversation and relevant public manual excerpts. Records are stored privately in Cloudflare R2 without automatic expiry. Check the cited manual before acting on an answer.