CLI command design

easyeda-import

Generate Altium schematic-library, PCB-library footprint, and downloaded 3D model assets from EasyEDA/LCSC component data.

Usage

altium-cruncher easyeda-import C2040 --input-json C2040.json -o output/easyeda-import
altium-cruncher easyeda-import C2040 --symbol-only

Arguments

lcsc_id identifies the part. --input-json, --cache-dir, and --no-fetch control data loading. Full output is the default: generated SchLib, generated PcbLib, and downloaded 3D model assets when available. --symbol-only skips footprint and 3D asset output. --no-3d-model-download skips model download. easyeda-monkey is a normal runtime dependency of altium-cruncher, so no separate install extra is required.

Output

The command writes generated SchLib, generated PcbLib, JSON mapping reports, optional SVG previews, and 3d_models/ assets plus easyeda-3d-models.json when a model can be downloaded. 3D model placement or attachment into the generated Altium PcbLib is not implemented.

Tests

EasyEDA tests validate symbol import, default footprint import, reports, previews, saved fixture inputs, and mocked 3D model asset download without requiring live API access. L0 verifies the command is registered as a first-class public command.