Files
mikilab-kicad-library/footprints/other/PESD5V0L4UW.pretty/SOT665_NXP.kicad_mod
T
micheleandClaude Sonnet 5 c544db45f4 Add ESD9B5.0ST5G, PESD5V0L4UW, TPD2E007DCKR, TPS22994RUKT; fix FSC-BT1058 duplicate library registration
FSC-BT1058 had ended up with two footprint/symbol libraries on disk
(FSC-BT1058 and MIKILAB_FSC-BT1058) after a re-import baked the
"MIKILAB_" nickname prefix into the component name itself. Since that
prefix is normally added automatically when sym-lib-table/fp-lib-table
are generated, the double-prefixed copy (MIKILAB_MIKILAB_FSC_BT1058)
was invisible to collision checks and left the original as a stale,
outdated duplicate.

Consolidated onto the single correct library (symbols/other and
footprints/other without the redundant prefix, matching the rest of
the library's naming convention), fixed the symbol's Footprint
property and the footprint's 3D model reference, and regenerated both
lib-tables from disk.

To stop this class of bug from recurring:
- lib_common.check_component_name() rejects any --name that already
  starts with "MIKILAB", used by import_component.py's import_symbol/
  import_footprint (and therefore also by add_component.py and the
  SnapEDA/UltraLibrarian importers, which call into the same core).
- check_library.py now flags any on-disk symbol/footprint whose name
  already carries that prefix as an ERROR, independent of how it got
  there.
- import_component.py gains --remove to cleanly delete a component
  (symbol, footprint library, 3D model) and regenerate the lib-tables
  in one step, for exactly this kind of cleanup.

Errors: 0 on check_library.py after the fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-24 20:06:54 +02:00

70 lines
4.7 KiB
Plaintext

(footprint "SOT665_NXP" (version 20211014) (generator pcbnew)
(layer "F.Cu")
(tags "PESD5V0L4UW ")
(attr smd)
(fp_text reference "REF**" (at 0 0 unlocked) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value SOT665_NXP (at 0 0 unlocked) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user "${REFERENCE}" (at 0 0 unlocked) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user "*" (at -0.9525 -1.6303) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user "*" (at -0.3937 -1.1223) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -0.6477 -0.3603) (end -0.6477 -0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.6477 -0.6397) (end -0.8509 -0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.8509 -0.6397) (end -0.8509 -0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.8509 -0.3603) (end -0.6477 -0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.6477 0.1397) (end -0.6477 -0.1397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.6477 -0.1397) (end -0.8509 -0.1397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.8509 -0.1397) (end -0.8509 0.1397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.8509 0.1397) (end -0.6477 0.1397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.6477 0.6397) (end -0.6477 0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.6477 0.3603) (end -0.8509 0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.8509 0.3603) (end -0.8509 0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.8509 0.6397) (end -0.6477 0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.6477 0.3603) (end 0.6477 0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.6477 0.6397) (end 0.8509 0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.8509 0.6397) (end 0.8509 0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.8509 0.3603) (end 0.6477 0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.6477 -0.6397) (end 0.6477 -0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.6477 -0.3603) (end 0.8509 -0.3603) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.8509 -0.3603) (end 0.8509 -0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.8509 -0.6397) (end 0.6477 -0.6397) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.9017 1.1049) (end -0.9017 0.8683) (layer "F.CrtYd") (width 0.1524))
(fp_line (start -0.9017 0.8683) (end -1.4859 0.8683) (layer "F.CrtYd") (width 0.1524))
(fp_line (start -1.4859 0.8683) (end -1.4859 -0.8683) (layer "F.CrtYd") (width 0.1524))
(fp_line (start -1.4859 -0.8683) (end -0.9017 -0.8683) (layer "F.CrtYd") (width 0.1524))
(fp_line (start -0.9017 -0.8683) (end -0.9017 -1.1049) (layer "F.CrtYd") (width 0.1524))
(fp_line (start -0.9017 -1.1049) (end 0.9017 -1.1049) (layer "F.CrtYd") (width 0.1524))
(fp_line (start 0.9017 -1.1049) (end 0.9017 -0.9191) (layer "F.CrtYd") (width 0.1524))
(fp_line (start 0.9017 -0.9191) (end 1.4859 -0.9191) (layer "F.CrtYd") (width 0.1524))
(fp_line (start 1.4859 -0.9191) (end 1.4859 0.9191) (layer "F.CrtYd") (width 0.1524))
(fp_line (start 1.4859 0.9191) (end 0.9017 0.9191) (layer "F.CrtYd") (width 0.1524))
(fp_line (start 0.9017 0.9191) (end 0.9017 1.1049) (layer "F.CrtYd") (width 0.1524))
(fp_line (start 0.9017 1.1049) (end -0.9017 1.1049) (layer "F.CrtYd") (width 0.1524))
(fp_text user "*" (at -0.3937 -1.1223 unlocked) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user "*" (at -0.9525 -1.6303 unlocked) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -0.7747 0.9779) (end 0.077048 0.9779) (layer "F.SilkS") (width 0.1524))
(fp_line (start 0.077048 -0.9779) (end -0.7747 -0.9779) (layer "F.SilkS") (width 0.1524))
(fp_line (start -0.6477 0.8509) (end 0.6477 0.8509) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.6477 0.8509) (end 0.6477 -0.8509) (layer "F.Fab") (width 0.0254))
(fp_line (start 0.6477 -0.8509) (end -0.6477 -0.8509) (layer "F.Fab") (width 0.0254))
(fp_line (start -0.6477 -0.8509) (end -0.6477 0.8509) (layer "F.Fab") (width 0.0254))
(pad "1" smd rect (at -0.6985 -0.499999) (size 1.016 0.2286) (layers "F.Cu" "F.Paste" "F.Mask"))
(pad "2" smd rect (at -0.6985 0) (size 1.016 0.2286) (layers "F.Cu" "F.Paste" "F.Mask"))
(pad "3" smd rect (at -0.6985 0.499999) (size 1.016 0.2286) (layers "F.Cu" "F.Paste" "F.Mask"))
(pad "4" smd rect (at 0.6985 0.499999) (size 1.016 0.3302) (layers "F.Cu" "F.Paste" "F.Mask"))
(pad "5" smd rect (at 0.6985 -0.499999) (size 1.016 0.3302) (layers "F.Cu" "F.Paste" "F.Mask"))
)