← All Pull Requests

Bind the 3D model in the footprint (0402X105K250CT.kicad_mod names no model) #1

Open opened by Drew Owens

Versions: base be79ba0c44054b67e03f7e4fe455aab425fd15cf (this page's head, 2026-11-04) · adom-wiki 1.8.11 · adom/core 4.15.3 · adom/adom-aiflow 0.2.48 (where project-page refused the library)

Why

  • 0402X105K250CT.kicad_mod has no (model ...) line, although this page carries 0402X105K250CT.step and names it in page.json (component.parts.step and component.parts.model_3d_step).
  • So KiCad shows the part as a bare footprint, and a KiCad library built from this page (an Adom Cloud Library export, or AI Flow's project-page PCM package) has no 3D model for it. AI Flow's project-page then refuses the library ("parts whose 3D model does not resolve").

Change

  • Adds the model block that the other basic part pages from the same generator end their footprint with (for example adom/cr0402-fx-1003glf): (model "${KIPRJMOD}/0402X105K250CT.step" ...).
  • The block names the STEP with an identity offset, scale and rotation, as the sibling pages do.
  • 11 lines added before the footprint's closing parenthesis; nothing else in the file changes.

Tests

  • The diff against be79ba0c4405 is only the 11-line block, and the block is character for character the one adom/cr0402-fx-1003glf carries, with this MPN.
  • The file still parses as exactly one (footprint "0402X105K250CT" ...) with exactly one model, ${KIPRJMOD}/0402X105K250CT.step.
  • The STEP it names is on this page at the same ref: 0402X105K250CT.step, sha256 3f90e060733ce6bfaf9b04ef91c15209d44d3f70685a415a4ee8f2b6e534e2ad.

Worth checking at the same time: this page has no models_3d record for its STEP (no sha256, no pose check), unlike adom/cr0402-fx-2201glf and adom/cl21a226mpqnnne. The identity pose follows the generator's convention; it was not checked against the pads here.

Diff Skip to comments

--- a/0402X105K250CT.kicad_mod+++ b/0402X105K250CT.kicad_mod@@ -1,16 +1,28 @@⋯ 12 unchanged lines ⋯   (fp_line (start -0.09 0.42) (end 0.09 0.42) (stroke (width 0.12) (type default)) (layer "F.SilkS"))   (pad "1" smd roundrect (at -0.48 0) (size 0.56 0.62) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1786))   (pad "2" smd roundrect (at 0.48 0) (size 0.56 0.62) (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.1786))+	(model "${KIPRJMOD}/0402X105K250CT.step"+		(offset+			(xyz 0 0 0)+		)+		(scale+			(xyz 1 1 1)+		)+		(rotate+			(xyz 0 0 0)+		)+	) )+

Comments

No comments yet.

Log in to comment.