obsidian-notes/工具/PCB转HTML.md
murmur 1bd98b8dd8 Matebook更新了1个文件
Affected files:
工具/PCB转HTML.md
2024-05-01 14:42:36 +08:00

18 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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`