板级交换格式:GenCAD/Hyperlynx/容器/CSV
GenCAD 1.4 导出与解析(英寸 6 位、焊盘栈/封装/网络/走线)、Hyperlynx .hyp 板级导出、epro2/elibz2 容器识别与 STORE zip、drawline CSV 校验;跨工具板级数据交换离线核心。
Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.
Preview gallery
Export this board data to GenCAD and Hyperlynx with round-trip verification, detect the container zip type, and flag invalid layer rows in the drawline CSV.
Content matches the files inside the package; extracted by the publish pipeline.
LCEDA exchange formats bundle
Offline re-implementation of the format cores of five Apache-2.0 LCEDA extensions (export-gencad, gencad-viewer, export-hyperlynx, import-project-library-folder, drawline); see references/PROVENANCE.md.
What the script computes
scripts/demo.mjs (Node >= 20, no dependencies):
- GenCAD emit: $HEADER/BOARD/PADS/PADSTACKS/SHAPES/COMPONENTS/DEVICES/ SIGNALS/ROUTES/LAYERS in inch (6 decimals); pad geometry dedup (ROUND drill / RECTANGULAR w h drill), shape outline = pin bbox + 30 mil, PIN local coordinates un-rotated, COMPONENT PLACE/LAYER/ ROTATION/SHAPE FLIP, SIGNAL NODE, ROUTE LINE/VIA.
- GenCAD parse: quoted-token tokenizer, case-insensitive keywords, units INCH/MIL/MM/MICRON/USER n -> mm; BOARD perimeter, PADS, PADSTACKS, SHAPES PIN/LINE, COMPONENTS, DEVICES, SIGNALS, ROUTES, LAYERS. Known non-reconstructible constructs warn instead of silently dropping: component TEXT, ARTWORKS records, route WIDTH. Emit -> parse round-trip is checked and reported.
- HyperLynx .hyp emit: VERSION 2.14, UNITS INCH (7 decimals), BOARD perimeter, fixed STACKUP (signal T0.0014 C1.724e-8 / dielectric T0.008 C4.5), PADSTACK MDEF, NET PIN/VIA/SEG records.
- epro2/elibz2 containers: STORE-only zip writer (local 0x04034b50 / central 0x02014b50 / EOCD 0x06054b50, UTF-8 flag 0x0800, CRC32 0xEDB88320, DOS time) and reader; marker detection project2.json + *.epru -> epro2, device2.json + .elibu -> elibz2; noise files skipped, paths normalized, names sanitized ([\/:?"<>|] -> _); project2.json synthesis when missing. Non-STORE entries fail loud.
- drawline CSV: 5 columns (x1,y1,x2,y2,layer; width defaults 0.2 mm) or 6 (x1,y1,x2,y2,width,layer); layer table TOP 1 / BOTTOM 2 / silkscreen 3-4 / mask 5-6 / paste 7-8 / assembly 9-10 / outline 11 / multi 12 / document 13 / mechanical 14 / INNER1-32 = 15-46 / hole 47 / drill 56 / ratline 57 / stiffener 58-59; errors carry line numbers.
- Artifacts: board.gcd, board.hyp, gencad-parse.json, gencad-import.json, container.zip, drawline.csv.
Run
node scripts/demo.mjs --out-dir <dir> [--input <json>]
Default input: scripts/fixtures/input.json (contains one deliberately
invalid drawline layer). stdout is an edaskills.report.v1 report.
Input shape: { "board"?: {name, outline:[{x,y}], components:[{ref, device, x, y, rotation?, layer?, pins:[{name,x,y,pad?}]}], nets:[{name,nodes:[{ref,pin}]}], tracks?, vias?}, "gencadText"?, "container"?: {name, files:[{path,text}]}, "drawlineCsv"? } (mm).
When to use
- Move a board between LCEDA and GenCAD-aware tools (CAM, legacy viewers) with a verified round-trip.
- Produce a HyperLynx starting file for SI review.
- Inspect/repack epro2 project or elibz2 library containers offline.
- Convert drawline CSV scripts to layer-id segments before write-back.
Not for: full GenCAD artwork/panel reconstruction, .hyp stackup extraction from a real board (fixed demo stackup), DEFLATE zips, or binary epru/elibu content editing (containers are opaque payloads).
Dependencies
Demo run
node v24.19.0 · 2026/11/19
- [warning] GENCAD_TEXT (R1): component TEXT attributes are not reconstructed
- [warning] GENCAD_TEXT (U1): component TEXT attributes are not reconstructed
- [info] GENCAD_ROUNDTRIP_OK (demo): emit->parse: 2 components, 2 signals, 4 perimeter points
- [info] HYP_EMITTED (demo): HyperLynx .hyp v2.14, 2 nets, inch units
- [warning] GENCAD_ARTWORKS (artworks): ARTWORKS section present; artwork records are not parsed
Some artifacts are listed by name only (extension not in the preview whitelist).
FAQ
Ratings & reviews
Not rated0 ratings
Sign in to rate this skill.
Sign inVersions
- v1.0.0Latest292.5 KB
首发种子版本。