Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 09:11
· 166 commits to master since this release

SeEx v2.0.0

中文

Note

  1. 强烈建议更新到2.0.0版本。我觉得这个版本做了非常多的修复与改进,所以我决定直接跳到2.0.0版本。
  2. 感谢各位“股东”的反馈和赞助。如果您在当前版本遇到了bug,可以直接在issue里提出。
  3. 市面上可能还有类似的导出工具,但是nlbn(现已合并到npnp), npnp, seex都是我的原创之作。
  4. 市面上也有很多类似的工具参考了我的代码,但是从未注明出处,或许这就是开源的无奈吧,只能假定大家都是君子。
  5. 如果别的作者要求您付费使用,您可以直接拒绝,并且考虑使用我的作品。

本次大版本把整个界面重写到了 GPUI 之上,并修复了 3D 模型摆放、异形焊盘阻焊等导出问题。与此同时,导出 200 个元件时的内存峰值降低了一半左右,耗时也明显缩短。配置文件的位置与文件名都没有变化,升级后原有设置会保留。

界面重写

  • 界面由 egui/eframe 迁移到 GPUI(gpui-kit):布局与尺寸保持一致,渲染更清晰,文字会跟随你选择的字体,eframe 已从依赖中移除。
  • 新增「字体」页面:界面语言切换(原先在顶栏)与拉丁字体、中日韩字体两个选择器,列出系统已安装的全部字体,支持搜索、预览,并保存到配置(latin_font / han_font)。
  • 导航顺序为:监控、历史、导出、字体、更多。
  • 所有控件、行与卡片统一使用同一套圆角,窗口本身也向系统申请圆角。
    • 测试win10发现窗口本身依然是矩形;win11的窗口是圆角。
    • 其他平台还未测试,欢迎反馈。
  • 窗口标题改为 SeEx: seek and export。
  • 通知与悬停提示统一为同一种填充样式:提示显示在所说明控件的旁边,不再遮挡按钮;通知居中显示在状态栏。悬停文字与工具提示都会跟随所配置的字体与所选语言。
  • 导出进度条把文字写在进度条内部,并占满到「导出库」按钮之前的宽度。

新增

  • 原理图两个颜色色块背后的取色器:H/S/L 滑块与 24 色预设调色板,选色后立即写入十六进制输入框、导出设置与配置文件;在输入框中输入颜色也会同步回取色器。
  • 原理图填充色可以选择「无颜色」:元件本体按无填充、透明的区域导出(Altium 写入 TRANSPARENT、不再写入 ISSOLID),而不是被涂成某个默认颜色。
  • 更新检查会在启动 5 秒后自动执行,之后每 6 小时一次;发现新版本时在状态栏显示可点击的提示,点击即打开下载页面。通知与悬停提示仍然优先显示,后台检查无法访问 GitHub 时保持安静,只有「更多」页面上的按钮会报告失败。
  • 复制、导入、导出等操作增加了提示反馈,并固定在状态栏中显示。
  • 导出进度会写明正在抓取的元件编号(例如 1/200: Fetching C46961765),而不是只显示一个 -。
  • 导出页面新增「失败 ID」面板:失败的 ID 集中列出并可一键复制,不用再去日志里翻找。
  • 「历史」页面新增「删除全部」,列表也会随页面高度铺满,不再停在固定高度。
  • KiCad 导出同样支持「追加」,行为与 Altium 一致。
  • 不再内置字体:界面完全使用系统已安装的字体,在「字体」页面中选择。
  • 捐赠页面只保留一个收款码(原先的两张支付图片已移除)。

修复

  • 3D 模型:现在会把 EasyEDA 的模型旋转写入 Altium(MODEL.3D.ROTZ)与 KiCad((rotate ...)),并按各自需要的方向取值,元件本体不再横躺在焊盘上。
  • 3D 模型:按 STEP 模型的实测高度将其抬升到板面之上,不再陷进板内;模型自身原点偏移的也会重新居中到焊盘上。超出合理范围的修正会被忽略,因此本来就正确的模型保持逐字节不变。
  • Altium 异形(多边形)焊盘现在会导出阻焊开窗:阻焊扩展绑定到自定义焊盘的铜层区域,并且扩展图元信息在合并与追加导出中不再丢失。
  • 鼠标滚轮会留在「匹配」与「历史」列表内部:列表滚到尽头后,背后的页面不会再跟着滚动。
  • 手动导入输入框固定高度并可滚动,输入大量 ID 时不再被拉伸变形。
  • 剪贴板监听出错后可以恢复,而不再中断:启动时会先处理剪贴板上已有的有效 ID,对连续失败进行计数并退避重试,也能容忍其它程序短暂占用剪贴板。
  • 单个元件超过 180 秒仍未返回会被记为失败并继续下一个,一个卡住的元件不会再拖住整批导出。
  • 状态栏左右两端的文字不再被截断:两侧按各自的文字宽度排版,中间保留最小宽度。
  • 悬停提示不再让布局抖动、文字发虚:提示的位置始终预留固定高度。
  • 「历史」页面的内框在任何窗口高度下都完整可见,底部始终显示,不再被裁掉。
  • 点「清空全部」之后依然会捕获剪贴板里新复制的 ID。
  • KiCad 导出会跳过已经导出过的 ID(即使勾选了「强制」),重复导出不再白跑一遍。
  • Altium 与 KiCad 现在共用同一套进度文案,并去掉了多余的 (+N more)。
  • 调色板色块加上了清晰描边与选中环,选中的颜色一眼可见。
  • 追加导出不会再因为已有库的写法而失败:读取旧库时会尝试它实际使用的分节名(旧版本按文件名规则命名,中文名也可能以系统编码写入),更新只读的合并库时会先清除只读属性。
  • 导出失败的原因现在会直接显示在导出页上,而不再只是把各项计数显示为 0。
  • 导出页面底部的选项行(合并、追加、出错继续、强制、英文元数据)与上方的按钮左对齐,不再悬在中间;窗口变窄换行时每一行都对得齐。

技术改进

  • 配置写入做了 500 毫秒防抖,内容没有变化时不写盘。
  • 文件对话框超过 30 秒会自动放弃,界面不再一直等待。
  • 列表始终可见,去掉了重复的监听开关。
  • 删除仓库中已失效的分析文档,并清理 README 中过期的说明。
  • 更新依赖版本与构建配置(.cargo/config.toml、CI 检出升级到 v7)。
  • 内存与速度:200 个元件的 Altium 合并导出,内存峰值从约 320MB 降到约 160MB,同一台机器上的耗时从约 63 秒降到约 28–32 秒,导出的库文件逐字节一致。
  • 3D 模型不再全部驻留内存:下载直接写入临时文件,逐个按需校正后再流式写入库文件;追加导出时模型是文件到文件的拷贝。
  • 抓取到的符号/封装 JSON 也先落盘,等该元件的模型下载开始后再读回,整批 JSON 不再同时占用内存。
  • 合并库的写入改为流式:模型按 zlib stored 分块写出;每个元件构建完成即转成合并所需的流,已导出的元件不再以结构化形式驻留内存。
  • 模型下载请求支持压缩传输(STEP 是文本,压缩后体积小很多),HTTP 客户端在进程内复用连接,不再为每次调用新建客户端。
  • 现在的内存峰值主要与「并行任务数」成正比(每个并行任务约 1–2MB 正在处理的数据),而不再随元件数量增长。想要更低的峰值可以调小「并行任务数」,代价是导出变慢,因为模型下载受网络延迟限制。

贡献者

  • @ref42

English

Note

  1. Updating to 2.0.0 is strongly recommended. I think this release carries so many fixes and improvements that I decided to jump straight to 2.0.0.
  2. Thanks to every "shareholder" for the feedback and the support. If you run into a bug in the current version, please open an issue.
  3. There may be other export tools of this kind around, but nlbn (now merged into npnp), npnp and seex are all my own original work.
  4. Plenty of similar tools have borrowed from my code without ever saying where it came from — perhaps that is just the lot of open source, and one can only assume everyone is a gentleman.
  5. If another author asks you to pay to use their tool, you are free to refuse, and to consider using mine instead.

This major release rewrites the whole interface on GPUI and fixes 3D model placement and irregular-pad solder mask in the exports. It also halves the memory a 200 component export needs and makes it noticeably faster. The config file keeps its name and location, so an upgrade carries the existing settings over.

Rewritten interface

  • The front end moved from egui/eframe to GPUI (gpui-kit): the layout and metrics are the same, rendering is crisper, text follows the fonts you choose, and eframe is gone from the manifest.
  • New Font page: the interface language switch (previously in the top bar) plus separate Latin and CJK family pickers over every font the system reports, with search, a preview, and persistence (latin_font / han_font in the config).
  • The navigation order is Monitor, History, Export, Font, More.
  • Every control, row and card shares one corner-radius scale, and the window asks the compositor for rounded corners of its own.
    • On win10 the window itself is still rectangular; on win11 it comes out rounded.
    • Other platforms have not been tested yet — feedback is welcome.
  • The window is titled SeEx: seek and export.
  • Notices and hover hints share one filled style: a hint appears beside the control it describes instead of covering it, and notices sit in the centre of the status bar. Hover text and tooltips follow the configured font and the chosen language.
  • The export progress bar prints its message inside the track and takes the full width up to the Export Library button.

Added

  • A colour picker behind both schematic colour swatches: H/S/L sliders and a 24-colour preset palette, committed straight into the hex box, the export settings and the saved config; a colour typed into the hex box flows back into the picker.
  • The schematic fill colour can be set to "no colour": the symbol body is exported as an unfilled, transparent area (Altium writes TRANSPARENT and no ISSOLID) instead of being painted in some default.
  • The update check runs by itself five seconds after start-up and every six hours after that, and a newer release puts a clickable notice in the status bar that opens the release page. Notices and hover hints still take precedence, a background check that cannot reach GitHub stays quiet, and only the button on the More page reports a failure.
  • Copy, import and export actions give feedback in a message docked in the status bar.
  • The export progress names the component being fetched (for example 1/200: Fetching C46961765) instead of showing a dash.
  • Failed ids get a panel of their own on the export page, with one button to copy them, so they no longer have to be dug out of the log.
  • The History page gains Delete all, and its list fills the page rather than stopping at a fixed height.
  • KiCad exports can Append too, matching Altium.
  • No font ships with the binary any more: the interface uses the fonts installed on the system, picked on the Font page.
  • The donation page shows a single payment code (the two payment images are gone).

Fixed

  • 3D models: the EasyEDA model rotation is now written to Altium (MODEL.3D.ROTZ) and KiCad ((rotate ...)), each in the direction that tool needs, so bodies no longer lie across their pads.
  • 3D models: the STEP body is measured and lifted until it rests on the board instead of sinking into it, and a model drawn away from its own origin is re-centred on its pads. Corrections outside a sane range are ignored, so models that were already right stay byte for byte unchanged.
  • Altium irregular (polygon) pads now export a solder mask opening: the mask expansion is bound to the custom pad's copper region, and the extended primitive information survives merge and append exports instead of being dropped.
  • The mouse wheel stays inside the Matched and History lists: reaching the end of a list no longer scrolls the page behind it.
  • The manual-import box keeps a fixed height and scrolls, so entering many IDs no longer stretches it out of shape.
  • Clipboard monitoring recovers from errors instead of stopping: it processes valid IDs already on the clipboard at start-up, counts consecutive failures and backs off, and tolerates another application briefly holding the clipboard.
  • A component that has not answered within 180 seconds is failed and skipped, so one slow part can no longer stall the batch.
  • Neither end of the status bar is clipped any more: each side is laid out to its own text, with a minimum width kept in the middle.
  • A hover hint no longer shakes the layout or blurs the text under the pointer: its slot is always reserved.
  • The History box is fully visible at any window height, with its bottom edge always on screen.
  • The clipboard keeps being captured after Clear All, so newly copied ids still arrive.
  • A KiCad export skips ids it has already exported even with Force on, instead of doing that work again.
  • Altium and KiCad now share one set of progress words, and the redundant (+N more) is gone.
  • The palette swatches have a crisp edge and a real selection ring.
  • Appending no longer fails over the way an existing library happens to be written: the reader tries the section names the library actually uses (an older build keyed them on the file-name form, and Chinese names may be stored in the system code page), and updating a read-only merged library clears the read-only flag first.
  • The export page now says why a run failed instead of only showing every count as zero.
  • The option row at the bottom of the export page (Merge, Append, Continue On Error, Force, English metadata) lines up with the buttons above it instead of floating in the centre, and stays aligned on every line when the window is narrow enough to wrap it.

Technical

  • Config writes are debounced by 500 ms and skipped when nothing changed.
  • A file dialog is abandoned after 30 seconds instead of leaving the interface waiting.
  • Lists are always visible, and the duplicate monitoring toggle is gone.
  • Removed the obsolete analysis documents and stale README lines.
  • Updated dependencies and build configuration (.cargo/config.toml, CI checkout v7).
  • Memory and speed: a 200 component Altium merge went from about 320MB to about 160MB peak memory and from about 63 seconds to about 28-32 seconds on the same machine, with a byte for byte identical library.
  • 3D models are no longer all held in memory: a download goes straight into a scratch file, is corrected one at a time, and is then written into the library as a stream; an append copies models file to file.
  • Fetched symbol and footprint payloads are parked on disk the same way and read back once that part's model download has started, so the whole batch's JSON is never in memory at once.
  • The merged library is written as a stream, with models in chunked zlib "stored" blocks, and each part is reduced to the streams the merged file needs the moment it is built, so exported parts no longer keep their structured data around.
  • Model downloads ask for a compressed body (STEP is text and compresses several times over), and the HTTP clients are shared process wide so connections are reused instead of a new client per call.
  • The peak now scales with Parallel jobs — roughly 1-2MB of working state per job — rather than with the number of parts. Lower Parallel jobs for a lower peak, at the cost of time, since the model downloads are latency bound.

Contributor

  • @ref42