- Startseite
- Plugins
- Tools & Funktionen
- dsh-shiliu-cad-preview
dsh-shiliu-cad-preview
jsnancy/dsh-shiliu-cad-preview
In-app CAD viewer and editor: open DWG/DXF drawings, zoom, pan, pick a segment, delete and export as PNG, with parsing and rendering powered by shiliu-cad-core. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Installation
dsh plugin --profile web add github:jsnancy/dsh-shiliu-cad-previewREADME
十六 CAD · dsh-shiliu-cad-preview
在 DeepSeek Harness 里直接查看与编辑 CAD 图纸。界面跟随歸藏设计(Swiss / IKB): 左侧菜单,右侧图纸。

中文
DWG 解析、光栅渲染、缩放平移、拾取高亮、删除撤销、PNG 导出这些能力都在核心组件
shiliu-cad-core 里。插件只做集成,
核心升级后跟随升级即可获得新能力。
安装
dsh plugin --profile desktop add dsh-shiliu-cad-preview
desktop 是桌面版使用的 profile;命令用 DeepSeek Harness 自带的 dsh,也可以在
Plugins 里搜索 dsh-shiliu-cad-preview 安装。shiliu-cad-core 作为依赖自动安装
(约 51 MB,含 wasm 产物)。
使用
侧栏点 十六 CAD 打开主面板。
左栏:
- 图纸 — 内置示例图纸。
- 我的图纸 —
$DSH_HOME/shiliu-cad/files/下的.dwg/.dxf,以及你选入的图纸。 - 最近 — 最近打开的 24 个图纸,跨会话保留。
- 打开本地文件 — 选本机图纸,也可以直接把文件拖进右侧视图。
右栏:滚轮缩放、拖动平移、单击拾取、删除 / 撤销、导出当前视图为 PNG。右上角 EN / 中 切换界面语言。图纸字节只在本机解析,不上传。
底部 自动 / 浅色 / 深色 控制外观:自动跟随系统,手动选择会记住,并同时作用于 面板与 CAD 画布。
配置
| 字段 | 说明 |
|---|---|
config.distDir | 覆盖核心组件 dist 目录;也可用环境变量 SHILIU_CAD_DIST |
路由
| 路由 | 说明 |
|---|---|
GET /shiliu-cad/icon.png | 侧栏图标 |
GET /shiliu-cad/dist/<file> | 核心组件构建产物,逐文件注册 |
GET /shiliu-cad/api/files | 图纸清单 { ok, coreReady, files } |
GET /shiliu-cad/api/history | 最近打开 { ok, items } |
POST /shiliu-cad/api/upload?name= | 上传图纸,请求体是原始字节 |
POST /shiliu-cad/api/open | 记录一次打开 |
GET /shiliu-cad/file?src=user:<name> | 用户图纸的原始字节 |
GET /shiliu-cad/view?src=<id>&theme=<dark|light> | iframe 承载页 |
src 为 builtin:<序号> 或 user:<文件名>;上传上限 300 MB,只收 .dwg / .dxf。
许可
MIT。
English
DWG parsing, rasterization, zoom/pan, picking, delete/undo and PNG export all live in
shiliu-cad-core. The plugin is only the
integration layer.
Install
dsh plugin --profile desktop add dsh-shiliu-cad-preview
desktop is the profile used by the desktop app. Run this with the bundled dsh, or
install dsh-shiliu-cad-preview from Plugins. shiliu-cad-core ships as a dependency
(~51 MB with the wasm build).
Use
Open 十六 CAD from the sidebar.
Left: Drawings (built-in samples), Mine (.dwg / .dxf under
$DSH_HOME/shiliu-cad/files/ plus anything you pick), Recent (last 24, kept
across sessions), and Open local file — or drop a file on the view.
Right: wheel to zoom, drag to pan, click to pick, delete/undo, export the current view as PNG. The EN / 中 switch at the top right changes the panel language. Drawing bytes are parsed on this machine and never uploaded.
Auto / Light / Dark at the bottom controls the appearance; a manual choice is remembered and applies to both the panel and the canvas.
Configuration
| Key | Description |
|---|---|
config.distDir | Overrides the core dist directory; or set SHILIU_CAD_DIST |
Routes
| Route | Description |
|---|---|
GET /shiliu-cad/icon.png | Sidebar icon |
GET /shiliu-cad/dist/<file> | Core build artifacts, one exact route per file |
GET /shiliu-cad/api/files | Drawing list: { ok, coreReady, files } |
GET /shiliu-cad/api/history | Recently opened: { ok, items } |
POST /shiliu-cad/api/upload?name= | Upload a drawing; the body is the raw file |
POST /shiliu-cad/api/open | Record an open |
GET /shiliu-cad/file?src=user:<name> | Raw bytes of a user drawing |
GET /shiliu-cad/view?src=<id>&theme=<dark|light> | iframe host page |
src is builtin:<n> or user:<name>. Uploads are capped at 300 MB and accept
.dwg / .dxf only.
License
MIT.
Ähnliche Plugins
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn