Affected files: 工具/PCB转HTML.md
1.6 KiB
created | tags | |||
---|---|---|---|---|
2024-05-01 |
|
pcb转html可以方便贴装、快速查看等,比较方便。jlc自身支持这个功能。第三方开源方案为InteractiveHtmlBom。
安装
原生支持Eagle/Fusion360/EasyEDA/Allegro Cadence等。
- 安装InteractiveHtmlBom
python -m pip install InteractiveHtmlBom
Linux users can add
--user
flag if touching system libs is undesirable.pip
will generategenerate_interactive_bom
executable in your system (or user)bin
path. You can use that instead ofpython3 .../generate_interactive_bom.py ...
invocation.
- 安装exportJson以导出
.brd
文件为.json
文件
1.To make the skill script available for use, you need to copy the
exportJson.il
file to your local skill directory ( usually your installation path +\share\pcb\etc
) or the skill directory in the$CDS_SITE
path. Append it to theallegro.ilinit
file ( addload( "path/exportJson.il" )
) or load it manually via the skill load command ( typeset telskill
into the command line and then typeload("exportJson.il" )
. 2.Once the script is loaded successfully, you can start exporting the json file by typingexportJson + enter
in the command line. A directory namedjson
is created in your project folder containing the.json
. 3.Optional arguments
- 导出json后运行
generate_interactive_bom board.json
即可导出为单HTML文件
安装依赖
pip install wxpython jsonschema