CLI command design - experimental
easyeda-import
Experimental command that generates 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-onlyArguments
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. The command requires the optional easyeda dependency extra and is not first-release stable.
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
Optional EasyEDA tests validate symbol import, default footprint import, reports, previews, saved fixture inputs, and mocked 3D model asset download without requiring live API access, but this command remains experimental until release ownership is complete.