--- created: 2024-05-01 tags: - "#pcb" - cadence - "#python" --- pcb转html可以方便贴装、快速查看等,比较方便。jlc自身支持这个功能。第三方开源方案为[InteractiveHtmlBom](https://github.com/openscopeproject/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 generate `generate_interactive_bom` executable in your system (or user) `bin` path. You can use that instead of `python3 .../generate_interactive_bom.py ...` invocation. - 安装[exportJson](https://github.com/juulsA/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 the `allegro.ilinit` file ( add `load( "path/exportJson.il" )` ) or load it manually via the skill load command ( type `set telskill` into the command line and then type `load("exportJson.il" )`. > 2.Once the script is loaded successfully, you can start exporting the json file by typing `exportJson + enter` in the command line. A directory named `json` is created in your project folder containing the `.json`. > 3.Optional arguments - 导出json后运行`generate_interactive_bom board.json`即可导出为单HTML文件 > 安装依赖`pip install wxpython jsonschema`