master
Download ZIP Propose a change
Name Last commit message Last updated
docs v2.1.0 — direct Altium export: STEP + Gerbers, pads/silk overlay, make_overlay.py · barrett-land
install.sh Publish 3.0.1 · Colby Knox
make_overlay.py Publish 2.3.0 · barrett-land
package.json Publish 3.0.1 · Colby Knox
page.json Publish 3.0.1 · Colby Knox
README.md Preserve source for altium-export-molecule-3.0.0 · AdityaAngajala
SKILL.md Preserve source for altium-export-molecule-3.0.0 · AdityaAngajala
uninstall.sh Publish 3.0.1 · Colby Knox

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, 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.

Altium board exported to GLB with pads and silkscreen

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.