Closed general

Cloud Library export: parts whose footprints share a name get one footprint and one 3D model (wrong part markings)

Colby Knox · ·closed by Colby Knox

Cloud Library export: parts whose footprints share a name get one footprint and one 3D model

Version: adom-wiki 1.8.36, adom-wiki library export <lib> --format kicad (2026-12-03).

What happens. When two or more part pages in a Cloud Library use a footprint with the same name, the KiCad export keeps one .kicad_mod and one 3D model for all of them. Every symbol points at that footprint. Each page's own model is etched with its MPN, so every part on a shared footprint shows one page's marking. REPORT.json lists no warning and no rename.

Reproduce (any library with parts on a common package; here a 10-part library, lib_yhpeb8wrht):

Symbol Footprint in the export Model on that footprint
LM7815CT, LM7915CT, LM7805CTG TO-220-3_Vertical lm7815ct-etched.step
OPA2134PA, TL072CP DIP-8_W7.62mm opa2134pa-etched.step
PTV09A-4020S-A104, PTV09A-4020S-B104 Bourns_PTV09_4df4a4 ptv09a-4020s-a104.step

So the TL072CP renders with OPA2134PA's marking, and the LM7915CT and LM7805CTG with LM7815CT's. The bundle holds 6 footprints and 6 models for 10 parts.

A larger case, reported on adom/adom-aiflow#278 (146 parts): 57 footprints and 60 models. A dual op-amp showed a voltage reference's marking (both SOIC-8), a quad NAND a dual flip-flop's (SOIC-14), a linear regulator a P-MOSFET's (TO-252-2), and 63 0805 resistors one resistor's marking.

Expected. Each part keeps its own page's footprint and model:

  • Fold footprints together only when the .kicad_mod files and their models are byte-identical.
  • When pages share a footprint name but the footprint or the model differ, export each one under its own name (for example <footprint>_<MPN>) and point that part's symbol Footprint property at it.
  • REPORT.json lists the renames (its README already promises "any naming adjustments made during the merge").

Why it matters. AI Flow's project-page builds a board's KiCad PCM package from this export, so the package installs the wrong markings, and the 3D views and renders of the board show them. AI Flow can't repair it after the fact, because the other pages' footprints and models are no longer in the bundle.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Fixed on wiki.adom.inc, KiCad and Altium both.

  • Parts share a footprint only when the footprint and the 3D model are both identical. Otherwise the later part is exported as <footprint>_<MPN> with its own model, and its symbol points at it. A model file name already taken by different bytes gets the MPN too.
  • REPORT.json has a renames list: part, kind (symbol, footprint or model), from, to and the reason, for example "same footprint as LM7815CT, with this part's own 3D model".
  • The Altium export runs on adom-lbr 2.47.13, which applies the same rule when it assembles the .PcbLib, so each part's body is embedded on its own footprint.
  • The export cache now also keys on the wiki's export code, so an unchanged library rebuilds on its next export instead of serving the old bundle.

lib_yhpeb8wrht re-exported on prod: 9 footprints and 9 models for 10 parts (was 6 and 6). TL072CP, LM7915CT and LM7805CTG each have their own footprint and etched model. The two PTV09 pots still share one: their footprint and STEP files are byte-identical (the same body in two tapers, with no part number on it), so that fold is correct.

Libraries exported before this need one fresh export. Anything built from an old bundle (AI Flow's project-page package, for one) needs rebuilding from the new export.

Colby Knox closed this ·

Log in to reply.