From bcc4f72e91d718fde48e0aaa7508950892d0847e Mon Sep 17 00:00:00 2001 From: LittleGuo Date: Tue, 13 Oct 2026 23:56:10 +0800 Subject: [PATCH] =?UTF-8?q?docs(memory):=20=E8=AE=B0=E5=BD=95=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=20DLL=20=E9=87=8D=E9=93=BE=E6=8E=A5=E9=9C=80=E5=85=88?= =?UTF-8?q?=E5=85=B3=E9=97=AD=20CAD=EF=BC=88=E6=97=A0=E7=83=AD=E9=87=8D?= =?UTF-8?q?=E8=BD=BD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai.memory/project_review_agent_impl.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ai.memory/project_review_agent_impl.md b/ai.memory/project_review_agent_impl.md index fe29557..d466d38 100644 --- a/ai.memory/project_review_agent_impl.md +++ b/ai.memory/project_review_agent_impl.md @@ -58,6 +58,11 @@ type: project 这是 AutoCAD 官方 RX 自动加载机制,比 `acaddoc.lsp` + LISP 更直接。 - AutoCAD 2020 安装于 `C:/Program Files/Autodesk/AutoCAD 2020/`;用户配置目录 `C:/Users/gjm/AppData/Roaming/Autodesk/AutoCAD 2020/R23.1/chs/`(`acaddoc.lsp` 已用于 PDF2CAD,勿覆盖)。 +- **改 `cad_mcp_plugins` 后重链接必须先关 CAD**:插件 DLL 被 CAD 进程持有(`LNK1168: cannot open + ...dll for writing`)。模板 `cad-mcp-frame.json` 里的 `"hot_reload": true` **只是占位、代码未实现**, + `mcp_Tools::clear()`(唯一 `FreeLibrary` 处)仅在 ARX 卸载时调用 → **没有热重载**。 + 流程:关 CAD → `cmake --build --preset R230 --config Debug` → 重启 `acad.exe`(`acad.rx` 自动加载) + → 轮询 `127.0.0.1:8080` 监听。编译阶段可先行(语法错误会被提前暴露,只有链接会因占用失败)。 ## 验证结论(2026-10-13 实测通过)