كيفية إصلاح «kicad-cli pcb export step» الذي لا يصدّر نماذج المكونات ثلاثية الأبعاد

المشكلة:

تحاول تصدير نموذج STEP ثلاثي الأبعاد لـ PCB باستخدام أمر مثل

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.

الحل

أضف العلم --subst-models إلى kicad-cli لاستبدال نماذج VRML بنماذج STEP تلقائيًا:

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

بعد ذلك، ستُصدَّر جميع نماذج المكونات المتاحة تمامًا كما في العارض.


Check out similar posts by category: الإلكترونيات KiCad