Wie man "kicad-cli pcb export step" repariert, das keine Komponenten-3D-Modelle exportiert

Problem:

Sie versuchen, ein 3D-STEP-Modell Ihrer Leiterplatte mit einem Befehl wie

kicad_export_step.sh
kicad-cli pcb export step MyPCB.kicad_pcb

zu exportieren, aber die resultierende STEP-Datei enthält keine (oder fast keine) Komponentenmodelle (d.h. nur die Leiterplatte wird exportiert).

Außerdem können Sie in der Ausgabe des Befehls

kicad_vrml_error.txt
Cannot add a VRML model to a STEP file.

für jede einzelne Komponente lesen, zum Beispiel

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.

Lösung

Fügen Sie das --subst-models-Flag zu kicad-cli hinzu, um VRML-Modelle automatisch durch STEP-Modelle zu ersetzen:

kicad_export_step_with_subst.sh
kicad-cli pcb export step MyPCB.kicad_pcb --subst-models

Danach werden alle verfügbaren Komponentenmodelle genau wie im Viewer exportiert.


Check out similar posts by category: Electronics, KiCad