by adom
Altium molecule path: native STEP export (headless altium_export_step) and the full fabrication bundle (<slug>-fab.zip, export.json), handed with the .PcbDoc to molecule-publish. The wiki's model registry reads the .PcbDoc with the STEP and builds a full molecule: model, footprint and symbol. Includes make_overlay.py for local overlay previews.
← Commit history
Merge PR #265: Carry full Altium fabrication sources into molecule publishing
4 files changed
+46−5
README.md+2@@ -1,5 +1,7 @@ # altium-export-molecule +Every molecule export includes `<slug>-fab.zip` (both sides' fabrication layers and drill) and `export.json` (producer versions and source hashes). The exporter hands both to molecule-publish, which checks them before and after the page push. See [SKILL.md](SKILL.md) for the tool-specific steps.+ Take an Altium Designer board to a GLB that actually looks like the board — pads, silkscreen and all — and on to a wiki molecule.
SKILL.md+38−1@@ -159,7 +159,44 @@ without OutputMedium — so **do not rebuild the OutJob, it is correct**. Note t `ExportSTEP\` subfolder under the OutJob's `RelativeOutputPath1`, and an OutJob only generates at all if it is a **member of the project**. -### 1b. Gerbers — fully headless, no click+### 1b. Full fabrication bundle — required on every molecule export++Use the current `adom/altium-bridge` manufacturing verb on the design machine:++```bash+adom-bridge altium_export_manufacturing '{"projectPath":"C:/work/Board.PrjPcb","pcbPath":"C:/work/Board.PcbDoc"}'+```++Use the returned `outputDir` and `files`. This emits Gerbers, NC drill,+pick-and-place and BOM. The generated OutJob inherits the installed Altium+template's drill settings: verify metric units, common Gerber/drill origin,+and separate plated/unplated files in the OutJob before the final export.+Do not claim that the current bridge sets those settings itself. If only+mixed drills can be produced, record `drill_mixed` explicitly.++Require `.GTL`, `.GBL`, `.GTS`, `.GBS`, `.GTO`, `.GBO`, a drawn board+outline and the Excellon drill outputs. Altium can emit an empty `.GM1` or+`.GKO`; an existing filename is not proof of an outline. If the boundary is+absent, stop and export the actual board boundary on a mechanical layer.+Keep the STEP's holes and the original `.PcbDoc`; do not replace the native+source with an imported KiCad board.++Use `molecule-publish`'s `scripts/fab_bundle.py` and `docs/fabrication.md`+to write `<slug>-fab.zip` and `export.json`. Record the Altium and bridge+versions, STEP, native PcbDoc, every SchDoc, project, and all other exported+sources. Supply the real layer stack where available; unknown colours,+finish or thickness stay absent. The helper verifies required layers,+outline, drill and hashes. Hand both files to publishing and verify the+downloaded pushed commit too.++The fabrication bundle does not resolve Stage 2's metadata/anchor blocker.+Keep reporting that separately; having Gerbers does not prove a publishable+anchored molecule. Preserve the current overlay while the converter needs it.++### 1c. Legacy top overlay inputs++The four files below are only inputs to the existing top-overlay renderer.+They do not replace the full fabrication bundle above. ```bash adom-desktop --ai-thread "<thread>" altium_run_outjob '{"outjob":"C:\\...\\AdomSilkGerber.OutJob"}'
package.json+3−2@@ -1,11 +1,12 @@ { "slug": "altium-export-molecule",- "version": "2.3.1",+ "version": "2.4.0", "type": "skill", "description": "Direct Altium -> OCCT molecule/board path: STEP export (bodies) + Gerber export (copper + silkscreen) -> composited top-face overlay -> step2glb molecule mode. Includes make_overlay.py. Hands off to molecule-publish.", "dependencies": { "adom/adom-step2glb": "^1.1.0",- "barrett-land/adom-desktop-altium-bridge": "*",+ "adom/altium-bridge": "^0.2.50",+ "adom/molecule-publish": "^2.11.0", "adom/adom-bridge": "^2.0.0" }, "scripts": {
page.json+3−2@@ -1,6 +1,6 @@ { "slug": "altium-export-molecule",- "version": "2.3.1",+ "version": "2.4.0", "type": "skill", "description": "Direct Altium -> OCCT molecule/board path: STEP export (bodies) + Gerber export (copper + silkscreen) -> composited top-face overlay -> step2glb molecule mode. Includes make_overlay.py. Hands off to molecule-publish.", "tags": [@@ -12,7 +12,8 @@ ], "dependencies": { "adom/adom-step2glb": "^1.1.0",- "barrett-land/adom-desktop-altium-bridge": "*",+ "adom/altium-bridge": "^0.2.50",+ "adom/molecule-publish": "^2.11.0", "adom/adom-bridge": "^2.0.0" }, "scripts": {