如何将KiCad PCB导出为STEP — MCAD交付指南

当PCB需要与机械设计对接时
您已在KiCad中完成布线,现在机械团队需要检查外壳间隙、散热片配合或连接器对齐。截图不够用 — 他们需要真实的CAD几何图形,可以标注、干涉检查并组装。STEP(AP214)是每个MCAD工具都能读取的通用中立格式:Fusion 360、SolidWorks、Inventor、Creo、FreeCAD、Onshape。本文展示如何从KiCad干净地导出,避免引用损坏或部件缺失。
STEP导出实际生成的内容
KiCad的STEP导出器遍历您的电路板和每个关联的3D模型,写入一个包含PCB基板(作为实体)和每个元件(作为子装配体及其实体几何)的.step文件。结果是参数化B-rep,而非网格 — 这意味着MCAD工具可以测量边缘半径、以微米精度检测干涉,并将电路板视为真实机械对象。相比之下,WRL(KiCad的旧格式)只存储渲染网格,没有实体。
干净STEP导出的条件
- 每个封装都有3D模型 — 打开Footprint Properties → 3D Models选项卡,确认已设置.step或.wrl路径。缺失模型将导出为空的边界框。
- 3D模型路径已解析 — Preferences → Configure Paths必须定义KICAD6_3DMODEL_DIR(KiCad 6)或KICAD8_3DMODEL_DIR(KiCad 8)。未解析的路径会静默丢弃元件。
- 电路板轮廓是闭合多边形 — ERC的'unclosed outline'错误会传递到STEP中,产生Fusion会拒绝的无效实体。
- 用真实模型替换占位符 — 缺少供应商STEP的零件,从Samacsys或3DContentCentral获取。空的.wrl占位符只会用无用的网格数据膨胀文件。
- 使用AP214而非AP203 — AP214携带颜色和装配层次;AP203较旧且两者都剥离。近期KiCad默认AP214。
- 交付前用查看器检查 — 先在免费浏览器查看器打开导出的STEP。如果损坏可省一次Fusion往返。
导出工作流(KiCad 8)
- 在KiCad PCB编辑器中,选择File → Export → STEP (.step) — 对话框允许选择导出原点(Drill/Place或Grid)以及是否用边界框替代缺失模型。
- 将原点设置为机械团队使用的(0,0,0)基准 — 通常是Drill/Place原点对齐的安装孔。
- 仅在迭代时勾选Overwrite existing file;不勾选Fuse shapes(它会使导出时间增加5~10倍,收益却微乎其微)。
- 点击Export并等待 — 带真实STEP模型的500+元件大型板可能需要1~3分钟,因为OpenCascade要处理每个B-rep面。
- Verify — drop the exported STEP onto pcbviewer.app/tools/3d-viewer — PCB基板、元件和网络名称保持装配层次加载,在打开Fusion之前就能测量和干涉检查。
Exported a STEP? Drop it in our free browser viewer — no install.
免费试用 MakerSuite 3D为什么这一步是大多数MCAD交付失败的地方
机械工程师经常从未给封装附加3D模型的电气工程师那里收到'空的'STEP文件。KiCad STEP导出器不会警告缺失模型 — 它只导出电路板实体并悄悄跳过元件。结果只是SolidWorks中的裸PCB基板,机械团队退回,整个往返浪费一天。在发送前用浏览器查看器验证STEP,10秒就能发现。
需要STEP导出时
- 外壳设计交付 — 机械团队需要最高元件、板上连接器和散热片的间隙
- 散热片配合检查 — 热工程师需要精确的引脚封装来设计夹紧或粘接散热片
- 面板装配 — 将PCB放入完整产品CAD,验证紧固件不会与走线碰撞
- 客户交付 — 许多代工厂要求DFM审查时,Gerber和STEP一起提交
- 文档渲染 — KeyShot或Blender Cycles中的STEP比Gerber查看器截图好看得多
隐私 — 为什么验证用浏览器查看器
如果您的STEP包含未发布的产品几何(比如付费客户的原型),上传到云查看器是危险信号。MakerSuite 3D的STEP查看器完全在浏览器中运行occt-import-js WASM — 无上传,无服务器往返。您拖入的文件不离开标签页。与Fusion 360使用的是同一个OpenCascade内核,零NDA暴露。
常见问题
Which KiCad versions support STEP export?
STEP export has been in KiCad since version 5 (2018), but KiCad 7 and 8 produce the cleanest assemblies with proper hierarchy, fewer broken references, and support for threaded holes. If you're still on 5.x, expect some components to export as bounding boxes instead of real geometry — upgrade to 8.x for production MCAD handoff.
Why does my exported STEP file look empty?
Two usual suspects: (1) your footprints don't have 3D models attached — open Footprint Properties → 3D Models tab and point each one to a .step or .wrl file; (2) KiCad's built-in library path wasn't resolved — check Preferences → Configure Paths for KICAD6_3DMODEL_DIR or KICAD8_3DMODEL_DIR. Without models attached, STEP export still produces the PCB substrate but all components are missing.
Can I open the exported STEP file in Fusion 360 or SolidWorks?
Yes — STEP (AP214) is the universal neutral CAD format. Fusion 360, SolidWorks, Inventor, Creo, CATIA, FreeCAD, and Onshape all read it. The PCB comes in as a single assembly with the board body plus every component as a sub-part. You can measure, assign materials, and drop it into a larger mechanical design.
How do I check the exported STEP without installing CAD software?
Drop it onto MakerSuite 3D's free browser STEP viewer — it parses the AP214 assembly using occt-import-js (the same OpenCascade kernel Fusion uses) and shows the full hierarchy with measurements. No Fusion license, no FreeCAD install, no upload. Linked below.
What's the difference between STEP and WRL export?
STEP (AP214) is parametric B-rep CAD geometry — every surface is a mathematical definition, ideal for CAD and manufacturing. WRL (VRML) is mesh-based and was KiCad's legacy rendering format — fast for viewing but useless for mechanical CAD because there are no solid bodies. Always use STEP for MCAD handoff; WRL only if you're feeding a legacy renderer.
相关文章
拖入您的KiCad STEP — 几秒内验证装配
打开3D查看器