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>
116 lines
4.1 KiB
Plaintext
116 lines
4.1 KiB
Plaintext
|
|
(kicad_symbol_lib (version 20211014) (generator kicad_symbol_editor)
|
|
(symbol "ESD9B5.0ST5G" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
|
|
(property "Reference" "U" (id 0) (at -10.16 6.08 0.0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom left))
|
|
)
|
|
(property "Value" "ESD9B5.0ST5G" (id 1) (at -10.16 -6.54 0.0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom left))
|
|
)
|
|
(property "Footprint" "MIKILAB_ESD9B5_0ST5G:SODFL1006X40N" (id 2) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "MF" "ON Semiconductor" (id 4) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "DESCRIPTION" "ESD9B Series 7.8 V 15 pF Surface Mount TVS Diode - SOD-923" (id 5) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "PACKAGE" "SOD-923 ON Semiconductor" (id 6) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "PRICE" "None" (id 7) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "Package" "SOD-923-2 ON Semiconductor" (id 8) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "Check_prices" "https://www.snapeda.com/parts/ESD9B5.0ST5G/Onsemi/view-part/?ref=eda" (id 9) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "Price" "None" (id 10) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "SnapEDA_Link" "https://www.snapeda.com/parts/ESD9B5.0ST5G/Onsemi/view-part/?ref=snap" (id 11) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "MP" "ESD9B5.0ST5G" (id 12) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "Availability" "In Stock" (id 13) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "AVAILABILITY" "Unavailable" (id 14) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(property "Description" "\n \n - Clamp - Ipp Tvs Diode Surface Mount SOD-923\n \n" (id 15) (at 0 0 0)
|
|
(effects (font (size 1.27 1.27)) (justify bottom) hide)
|
|
)
|
|
(symbol "ESD9B5.0ST5G_0_0"
|
|
(polyline
|
|
(pts
|
|
(xy -1.016 0.0)
|
|
(xy -2.286 -0.762)
|
|
(xy -2.286 0.762)
|
|
(xy -1.016 0.0)
|
|
)
|
|
(stroke (width 0.1524)) (fill (type outline))
|
|
)
|
|
(polyline
|
|
(pts (xy -2.286 0.0) (xy -4.318 0.0)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy -1.016 0.0) (xy 1.016 0.0)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy -1.016 -0.762) (xy -1.016 0.762)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy -1.016 0.762) (xy -1.524 1.27)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy -1.016 -0.762) (xy -0.508 -1.27)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts
|
|
(xy 1.016 0.0)
|
|
(xy 2.286 0.762)
|
|
(xy 2.286 -0.762)
|
|
(xy 1.016 0.0)
|
|
)
|
|
(stroke (width 0.1524)) (fill (type outline))
|
|
)
|
|
(polyline
|
|
(pts (xy 2.286 0.0) (xy 4.318 0.0)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy 1.016 0.0) (xy -1.016 0.0)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy 1.016 0.762) (xy 1.016 -0.762)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy 1.016 -0.762) (xy 1.524 -1.27)) (stroke (width 0.1524))
|
|
)
|
|
(polyline
|
|
(pts (xy 1.016 0.762) (xy 0.508 1.27)) (stroke (width 0.1524))
|
|
)
|
|
(pin passive line (at 6.858 0.0 180.0) (length 2.54)
|
|
(name "~"
|
|
(effects (font (size 1.016 1.016)))
|
|
)
|
|
(number "2"
|
|
(effects (font (size 1.016 1.016)))
|
|
)
|
|
)
|
|
(pin passive line (at -6.858 0.0 0) (length 2.54)
|
|
(name "~"
|
|
(effects (font (size 1.016 1.016)))
|
|
)
|
|
(number "1"
|
|
(effects (font (size 1.016 1.016)))
|
|
)
|
|
)
|
|
)
|
|
)
|
|
) |