Files
mikilab-kicad-library/footprints/other/TPD2E007DCKR.pretty/SOT65P210X110-3N.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

48 lines
3.1 KiB
Plaintext

(footprint SOT65P210X110-3N (layer F.Cu) (tedit 6A89C42F)
(descr "")
(attr smd)
(fp_text reference REF** (at 1.75473 -2.95 0) (layer F.SilkS)
(effects (font (size 1.642 1.642) (thickness 0.15)))
)
(fp_text value SOT65P210X110-3N (at 13.21073 2.769175 0) (layer F.Fab)
(effects (font (size 1.64033858268 1.64033858268) (thickness 0.15)))
)
(pad 1 smd rect (at -1.0414 -0.6604) (size 1.1684 0.3556) (layers F.Cu F.Mask F.Paste) (solder_mask_margin 0.102))
(pad 2 smd rect (at -1.0414 0.6604) (size 1.1684 0.3556) (layers F.Cu F.Mask F.Paste) (solder_mask_margin 0.102))
(pad 3 smd rect (at 1.0414 0.0) (size 1.1684 0.3556) (layers F.Cu F.Mask F.Paste) (solder_mask_margin 0.102))
(fp_line (start 0.7112 -0.508) (end 0.7112 -1.0668) (layer F.SilkS) (width 0.1524))
(fp_line (start -0.2286 1.0668) (end 0.7112 1.0668) (layer F.SilkS) (width 0.1524))
(fp_line (start 0.7112 1.0668) (end 0.7112 0.508) (layer F.SilkS) (width 0.1524))
(fp_line (start 0.7112 -1.0668) (end 0.3048 -1.0668) (layer F.SilkS) (width 0.1524))
(fp_line (start 0.3048 -1.0668) (end -0.2286 -1.0668) (layer F.SilkS) (width 0.1524))
(fp_arc (start -0.00182224076969 -1.06730709937) (end -0.127 -0.7874) (angle -114.0) (layer F.SilkS) (width 0.1524))
(fp_line (start -0.7112 1.0668) (end 0.7112 1.0668) (layer F.Fab) (width 0.0))
(fp_line (start 0.7112 1.0668) (end 0.7112 0.1524) (layer F.Fab) (width 0.0))
(fp_line (start 0.7112 0.1524) (end 0.7112 -0.1524) (layer F.Fab) (width 0.0))
(fp_line (start 0.7112 -0.1524) (end 0.7112 -1.0668) (layer F.Fab) (width 0.0))
(fp_line (start 0.7112 -1.0668) (end 0.3048 -1.0668) (layer F.Fab) (width 0.0))
(fp_line (start 0.3048 -1.0668) (end -0.3048 -1.0668) (layer F.Fab) (width 0.0))
(fp_line (start -0.3048 -1.0668) (end -0.7112 -1.0668) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 -1.0668) (end -0.7112 -0.7874) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 -0.7874) (end -0.7112 -0.508) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 -0.508) (end -0.7112 0.508) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 -0.7874) (end -1.1938 -0.7874) (layer F.Fab) (width 0.0))
(fp_line (start -1.1938 -0.7874) (end -1.1938 -0.508) (layer F.Fab) (width 0.0))
(fp_line (start -1.1938 -0.508) (end -0.7112 -0.508) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 1.0668) (end -0.7112 0.7874) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 0.7874) (end -0.7112 0.508) (layer F.Fab) (width 0.0))
(fp_line (start -0.7112 0.508) (end -1.1938 0.508) (layer F.Fab) (width 0.0))
(fp_line (start -1.1938 0.508) (end -1.1938 0.7874) (layer F.Fab) (width 0.0))
(fp_line (start -1.1938 0.7874) (end -0.7112 0.7874) (layer F.Fab) (width 0.0))
(fp_line (start 0.7112 0.1524) (end 1.1938 0.1524) (layer F.Fab) (width 0.0))
(fp_line (start 1.1938 0.1524) (end 1.1938 -0.1524) (layer F.Fab) (width 0.0))
(fp_line (start 1.1938 -0.1524) (end 0.7112 -0.1524) (layer F.Fab) (width 0.0))
(fp_arc (start 0.0 -1.0668) (end -0.3048 -1.0668) (angle -180.0) (layer F.Fab) (width 0.0))
(model ${KIPRJMOD}/3dmodels/other/TPD2E007DCKR.step
(offset (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)