如何修复 "kicad-cli pcb export step" 不导出元件 3D 模型
问题:
你正在尝试使用类似命令导出 PCB 的 3D STEP 模型
kicad_export_step.sh
kicad-cli pcb export step MyPCB.kicad_pcb但生成的 STEP 文件缺少所有(或几乎所有)元件模型(即仅导出了 PCB)。
此外,在命令输出中,你可以看到
kicad_vrml_error.txt
Cannot add a VRML model to a STEP file.对于每个元件,例如
kicad_vrml_error_examples.txt
Add component R6.
Cannot add a VRML model to a STEP file.
Add component R21.
Cannot add a VRML model to a STEP file.
Add component C7.
Cannot add a VRML model to a STEP file.
Add component C16.
Cannot add a VRML model to a STEP file.解决方案
向 kicad-cli 添加 --subst-models 标志以自动用 STEP 模型替换 VRML 模型:
kicad_export_step_with_subst.sh
kicad-cli pcb export step MyPCB.kicad_pcb --subst-models之后,所有可用的元件模型将像在查看器中一样被导出。
Check out similar posts by category:
Electronics, KiCad
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow