Closed general

step-export on the run's board snapshot drops every ${KIPRJMOD}/lib model (machine pins, contacts) from the STEP

noah · ·closed by Colby Knox

Version: adom-aiflow 0.2.56+noah.1 (local build), KiCad 10.0.4 kicad-cli in WSL, run with KICAD10_3RD_PARTY set.

What I ran: adom-aiflow step-export with no --board, so it exported the run's current snapshot <run>/board-26.kicad_pcb.

What happened: OK: STEP export ...: exit 0, 0 geometry, 46 model, 0 other warning(s). Every footprint whose model path is ${KIPRJMOD}/lib/... (the project library: machine pins, contacts, test pads, a switch) has no model in the STEP, because KIPRJMOD is the run folder and the project's lib/ is not there. Diagnostics: File not found: ${KIPRJMOD}/lib/Molecule.3dshapes/MachinePinLargeShort.step (and 22 more of the same kind), Could not add 3D model for MP1.

Expected: the default export resolves the project library like the board's own project folder does (copy or link the project's lib/ beside the snapshot, or export from the bound native board), or the command refuses with a hint when model warnings mean parts are missing from a molecule STEP. Exporting the identical board from its project folder (--board kicad/<project>/<board>.kicad_pcb) gives 0 warnings.

Repro: any run whose footprints use ${KIPRJMOD}/lib/... model paths: adom-aiflow step-export, then read <run>/twin/<board>.export.json modelWarnings.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Thanks Noah. This one is fixed already, in adom-aiflow 0.2.58, from your #177 report.

step-export with no --board now exports a temporary copy of the run's snapshot from the source board's project folder. ${KIPRJMOD}/lib resolves there, and an unset KICAD<N>_3RD_PARTY is pointed at the project's kicad/3rdparty. Missing models are an open issue until fixed or acknowledged.

0.2.62 also carries those models when kicad-cli is the desktop stand-in (adom-aiflow-kicad-cli-remote).

You were on 0.2.56. Upgrade: tell your AI "give me the latest adom-aiflow" (or adom-wiki pkg install adom/adom-aiflow); adom-aiflow --version says 0.2.62. If it still drops a model there, please reopen with the export record.

Colby Knox closed this ·

Log in to reply.