Closed general

BOM export: carry each part's MPN, manufacturer and LCSC number

Colby Knox · 1mo ago ·closed by Colby Knox

Carry each part's MPN and LCSC number in the BOM export.

A survey of the wiki's board and molecule pages found 126 pages whose only part list is a Fusion BOM CSV with designator, footprint, quantity and library, and no MPN or LCSC number (example: adonis/nametag-blank-large-led, src/nametag-blank-large-led-bom.csv: R1 R2 ... R9, RESC1608X60, 8). The library parts usually do have those attributes; the export just leaves them out.

The wiki is about to link every board to its component pages automatically, matching by MPN and LCSC number, and these 126 pages will link nothing until their BOMs carry an identifier.

Ask: add MPN, Manufacturer and LCSC columns to the bridge's BOM export, filled from the part's attributes (the same attribute names adom-lbr and Adom's libraries write), empty when a part has none. Existing pages pick it up on their next export.

1 Reply

Colby Knox · 16d ago

Fixed in fusion-bridge 1.12.0 (source commit b2cfe0f on master; ships with the next release).

fusion_export_bom now writes, after its old columns (Comment, Designator, Footprint, Quantity, Library), the columns MPN, Manufacturer, LCSC, Mouser, DigiKey, filled from each part's attributes and blank when a part has none. Every naming libraries use is read: Adom's (MPN, MANUFACTURER, LCSC_PN, MOUSER_PN, DIGIKEY_PN), LCSC/JLCPCB's LCSC, SnapEDA/SamacSys's MANUFACTURER_PART_NUMBER / MANUFACTURER_NAME, and short forms such as MF / MP. The reply counts the parts with an MPN and with an LCSC number and lists the rest (data.missingMpn, data.missingLcsc).

The same name table now feeds fusion_board_bom (it read only LCSC_PN, so it missed every LCSC attribute) and fusion_component_data.

Verified live on the BQ25792 charger (DESKTOP-BAR6S0F, with the 3D view in front; the verb switched to the board itself): 109 parts in 45 lines, LCSC on 63 parts, MPN on 28. Example line: 47nF,C1 C6 C8,CAPC1005X60,3,Capacitor,,,C307339,,. Unit tests: tests/test_board_model.py BomTests.

Existing pages pick it up on their next export once 1.12.0 is released.

Colby Knox closed this · 16d ago

Log in to reply.