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
SKILL.md+32−19@@ -70,7 +70,7 @@ underlying machinery are net-new and gate an end-to-end run: | `step2glb` service `/convert` | molecule-mode conversion | **Built** (raw HTTP contract live) | | `adom-library-importer` (over `adom/adom-machine-parts-library`) | puts MP markers + machine pins into Altium | **Built** (3-EDA; replaces the deprecated `adom-altium-library-importer`) | | **`altium-pcbdoc`** | parse the board `.PcbDoc` → placements + pads (then → `.kicad_pcb`) | **PARSER BUILT + VALIDATED** (`altium-writer/altium-pcbdoc`; Components6 text + Pads6 via altium-pcblib; verified on 115-comp board). `.kicad_pcb` *emit* still pending the importer schema. |-| **Altium STEP export** (via `adom-desktop-altium-bridge`) | native STEP export driven from the container | **WORKS, WITH ONE HUMAN CLICK.** An OutJob carrying an `ExportSTEP` output produces the file; `GenerateReport` no-ops on that output type, so a person must press *Generate content* once. There is **no** headless STEP process — see Stage ①. |+| **Altium STEP export** (via `adom-desktop-altium-bridge`) | native STEP export driven from the container | **FULLY HEADLESS** via the AdomBridge in-process extension (`AdomBridge:ExportStep`), with hole/copper/model options. Fallback without the extension is an ExportSTEP OutJob + one human click. See Stage ①. | | **Gerber export** (same bridge) | copper + silkscreen, which the STEP does NOT contain | **FULLY HEADLESS** via `altium_run_outjob` — Gerber outputs generate with no click | | `step2glb --molecule` CLI flags | molecule conversion + silk overlay | **LANDED** — `--molecule`, `--silk-top/-bottom`, `--board`, `--pin`, `--compress` all work on the installed CLI | @@ -121,30 +121,43 @@ silkscreen.** Converting it alone yields a bare green board with no pads and no That is not a bug in the conversion; the data is simply not in the file. You need **two** exports and you composite them in Stage ③. -### 1a. STEP — via an ExportSTEP OutJob (needs one human click)+### 1a. STEP — headless, via the AdomBridge extension -There is **no headless STEP-export process.** Every `Command='...'` in AD26's resource files-was enumerated: `Pcb:ExportSTEP` does not exist (Altium silently ignores unknown process ids,-so a call "succeeds" and writes nothing), and the real `PCB:Export` is index-based and opens a-file dialog. Do not go hunting for a process id — this is settled.--Use an OutJob with an `ExportSTEP` output. Open it, then ask the user to click:+**Preferred route.** `adom-desktop-altium-bridge` ships an in-process .NET extension that registers+processes taking real arguments. Install it once (`altium_install_extension`, Altium closed), then: ```bash-adom-desktop --ai-thread "<thread>" altium_run_outjob '{- "outjob": "C:\\...\\AdomMoleculeStep2.OutJob",- "project": "C:\\...\\Board.PrjPcb",- "reload": false-}'-# then: "please click Generate content in the OutJob's output container"+# Request file at a SPACE-FREE path -- Altium's -R parser splits on whitespace, so a path+# with spaces is truncated AND the leftover tokens get opened as files.+cat > C:\Users\Public\AdomAltium\exportstep_req.txt <<'REQ'+PcbDoc=C:\...\Board.PcbDoc+Out=C:\...\board.step+Holes=All+PadHoles=true+Copper=None+Models=Step+REQ++X2.exe -RAdomBridge:ExportStep(Req=C:\Users\Public\AdomAltium\exportstep_req.txt)+# result -> C:\Users\Public\AdomAltium\adombridge_exportstep.txt (exists=, bytes=) ``` -`GenerateReport` no-ops specifically on `ExportSTEP` (Gerber outputs are fine). Verified with-ObjectKind=OutputBatch/OutputMedium/Document, with and without OutputMedium, and with the-OutJob already a member of a compiled project — so **do not rebuild the OutJob**, it is correct.+**Always set `Holes=All` + `PadHoles=true`.** Without them the board exports as a solid slab and+mounting holes exist only as pad artwork in the overlay. Measured on SpiritLevel-SL1:+1,657,922 B / 3,599 meshes without → **1,874,312 B / 3,727 meshes with**, holes visibly through+the board.++`Copper=All` bakes real 3D copper into the STEP, which removes the need for the Gerber pad overlay+entirely — but it is expensive: the same board goes 1.9 MB → **57.7 MB**. Choose per use case.++#### Fallback: an ExportSTEP OutJob plus one human click -The OutJob's `RelativeOutputPath1` decides where the file lands, and it goes in an-**`ExportSTEP\` subfolder** under that path — search recursively, not just the project dir.+If the extension is not installed, the only route is an OutJob carrying an `ExportSTEP` output with+a person pressing *Generate content*. `GenerateReport` no-ops on that output type specifically+(Gerber outputs are fine), verified across ObjectKind=OutputBatch/OutputMedium/Document with and+without OutputMedium — so **do not rebuild the OutJob, it is correct**. Note the file lands in an+`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
package.json+1−1@@ -1,6 +1,6 @@ { "slug": "altium-export-molecule",- "version": "2.1.0",+ "version": "2.2.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": {
page.json+1−1@@ -1,6 +1,6 @@ { "slug": "altium-export-molecule",- "version": "2.1.0",+ "version": "2.2.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": [