by adom
0402 Thick Film Resistor · 2.2 kΩ ±1% · 1/16 W
← All Pull Requests
Bind the 3D model in the footprint (CR0402-FX-2201GLF.kicad_mod names no model) #1
Open opened by Drew Owens
Versions: base 87f714b1986208db311531c43e3512b0d402bbed (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
CR0402-FX-2201GLF.kicad_modhas no(model ...)line, although this page carriesCR0402-FX-2201GLF.stepand names it in page.json (component.parts.stepandcomponent.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-pagePCM package) has no 3D model for it. AI Flow'sproject-pagethen 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}/CR0402-FX-2201GLF.step" ...). - The page already records that binding for this STEP (models_3d: role
eda, footprint_bindingidentity, footprint origin = pad-pattern centre), and the recorded sha256 matches the file. The block names it with an identity offset, scale and rotation. - 11 lines added before the footprint's closing parenthesis; nothing else in the file changes.
Tests
- The diff against
87f714b19862is 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 "CR0402-FX-2201GLF" ...)with exactly one model,${KIPRJMOD}/CR0402-FX-2201GLF.step. - The STEP it names is on this page at the same ref:
CR0402-FX-2201GLF.step, sha256b4a4b5e23ef41d0886efa809acd7e89d05edc60ff7b4995d288fa118fa63318d.
Diff Skip to comments
@@ -1,16 +1,28 @@⋯ 12 unchanged lines ⋯ (fp_line (start -0.165 0.36) (end 0.165 0.36) (stroke (width 0.12) (type default)) (layer "F.SilkS")) (pad "1" smd rect (at -0.5 0) (size 0.5 0.5) (layers "F.Cu" "F.Paste" "F.Mask")) (pad "2" smd rect (at 0.5 0) (size 0.5 0.5) (layers "F.Cu" "F.Paste" "F.Mask"))+ (model "${KIPRJMOD}/CR0402-FX-2201GLF.step"+ (offset+ (xyz 0 0 0)+ )+ (scale+ (xyz 1 1 1)+ )+ (rotate+ (xyz 0 0 0)+ )+ ) )+
Comments
Log in to comment.
No comments yet.