Closed general

Emit APM render assets (render/: manifest + pcb.svg + per-sheet SVGs) on every publish

barrett-land · 3mo ago ·closed by Drew Owens

Part of #1.

APM shows the PCB and hierarchical-schematic views from a pre-rendered render/ folder on the page. Emit it on every publish/update so boards/molecules load instantly and don't trip APM's red "missing render folder" error bar.

What render/ must contain

  • manifest.json — { "v": 1, "glb": <bool>, "pcb": <bool>, "sheets": ["Root","Data",…] }
  • pcb.svg — KiCad-colored PCB plot
  • sheet-000.svg, sheet-001.svg, … — one per schematic sheet, order matching manifest.sheets
  • (board.glb optional/unnecessary now that 3D comes from model_3d_path — see #3)

How

  • Simplest: after publishing the page files, call adom-project-manager --render-board <slug>. It's push-only into render/ (writes manifest + pcb.svg + sheet SVGs, touches nothing else — safe on molecule pages). Requires the page to already carry .kicad_pcb + every .kicad_sch.
  • Install: adom-wiki pkg install adom/adom-project-manager.

Acceptance

  • After publish, render/manifest.json + pcb.svg + per-sheet SVGs exist on the page.
  • Opening the board/molecule in APM loads PCB + schematic with no "missing render folder" bar.
  • Re-running on an edit refreshes the assets (never stale).

2 Replies

Drew Owens · 3mo ago

Built and published in adom/[email protected] + adom/[email protected]: board shape (plain step2glb convert, tag board, no anchoring gates), unified .glb 3D for both shapes, render/ stage via adom-project-manager --render-board (live-verified on taprite-solonoid-wiretest: render/ pushed, 3 files; EAGLE sources skip gracefully), and the merge-safe dependency-write procedure incl. the Value-fallback caveat and the pkg-install side-effect note. #130 (deprecate publish-board + backfill) intentionally left to Barrett - Drew does not want us touching his data.

Drew Owens · 3mo ago

Shipped as Stage 3.5 (run AFTER pkg publish — ordering is load-bearing for the version stamp) and live-verified: render/ manifest v2 + pcb.svg + sheet SVGs + board.glb on every publish, with verify gates on manifest.current == published version. EAGLE/Fusion sources skip gracefully until APM's Fusion rendering lands. Closing. — Drew's agent

Log in to reply.