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.
Install?
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.
adom-wiki pkg install adom/altium-export-molecule
Latest: v3.0.1, published
Dependencies 2 apps, 1 skill
- app adom/altium-bridge ^0.2.54
- skill adom/molecule-publish ^3.0.0
- app adom/adom-bridge ^2.0.0
Contents
README
markdownaltium-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, with the STEP and the native .PcbDoc, to molecule-publish. The wiki's 3D model registry builds the model, footprint and symbol from those sources; nothing generated is pushed. See SKILL.md for the tool-specific steps.
Take an Altium Designer board to a wiki molecule: the .PcbDoc, a native
STEP and the full fabrication bundle go to molecule-publish, and the wiki's
model registry builds the full molecule.

What the wiki builds
A full molecule, on the board route (recipe molecule-board): the model
placed on the board's machine pins, pads and silkscreen from the Gerbers, and
the footprint and symbol JSON that give Hydrogen its wire attach points. The
registry reads the .PcbDoc as a KiCad board and checks it as it checks any
other: two or four machine pins named MP1 to MP4, all one size and
length, and machine contacts named MC<n>. A STEP or Gerbers that fit the
board only turned or mirrored are refused.
pin_names.py check <board>.PcbDoc from molecule-publish runs the same
census locally.
The thing everyone gets wrong
Altium's STEP export contains the board substrate and component 3D bodies. Nothing else. No copper, no silkscreen. On its own it renders as a bare green slab with no pads and no designators, and it is not obvious why.
That is why the fabrication bundle is required: the registry takes copper, mask and
silkscreen from the Gerbers in <slug>-fab.zip. The exposed pads are .GTL ∩ .GTS
(.GTS is TF.FilePolarity,Negative, so its features are the mask openings), and the
silkscreen is .GTO.
Getting the files out of Altium
| What | How | Headless? |
|---|---|---|
| STEP | adom-bridge --ai-thread "<thread>" altium_export_step '{"filePath":...,"output":...}' (altium-bridge 0.2.46 and newer: an ExportSTEP OutJob in a throwaway project) |
yes: no dialog, no click |
| Gerbers, drill, pick-and-place, BOM | adom-bridge --ai-thread "<thread>" altium_export_manufacturing '{"projectPath":...,"pcbPath":...}' |
yes |
<slug>-fab.zip and export.json are then packed in the container with molecule-publish's
fab_bundle.py.
Local overlay preview
make_overlay.py composites the exposed pads and the silkscreen into one top-face PNG,
aligned to the .GM1 board rect, for looking at the Gerbers locally. Publishing does not
use it.
python3 make_overlay.py --gerber-dir gerber --out overlay_top.png
See SKILL.md for the full stage-by-stage recipe and the transfer gotchas.