From 7f22adbc14699ff54b921dbfb52f0dcd60ec98cc Mon Sep 17 00:00:00 2001 From: company-desktop-computer Date: Fri, 30 Oct 2026 06:54:43 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AF=B9=E7=85=A7=E8=A1=A8=E6=8A=8A?= =?UTF-8?q?=E5=BC=82=E5=BD=A2=E6=B4=9E/=E4=BA=95=E6=A0=87=E4=B8=BA?= =?UTF-8?q?=E5=B7=B2=E5=AE=9E=E7=8E=B0=EF=BC=8C=E5=B9=B6=E8=A1=A5=E7=94=A8?= =?UTF-8?q?=E6=B3=95=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PL_YXKD 异形开洞 -> add_aec_opening(shape=polygon + points) PL_JFZJ/PJ_JYZJ/PL_JFYJ -> add_aec_well(rect/circle) PL_JYXJ 异形井、PL_JJSK 集水坑仍标未实现(用上下双轮廓的 SetAsWell 重载,未接)。 附实测数据与内部调用的命令实现位置。 --- cad-mcp-aec.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cad-mcp-aec.md b/cad-mcp-aec.md index 96e8195..bf9de93 100644 --- a/cad-mcp-aec.md +++ b/cad-mcp-aec.md @@ -323,7 +323,7 @@ MCP 工具是通过 `PostMessage` 在主线程的消息里跑的,**不在命 |PL_CDKD|平板开洞|AecDbX3dPartEntity|add_aec_opening|update_aec_opening| |PL_CBKD|墙体开洞|AecDbX3dPartEntity|add_aec_opening|update_aec_opening| -|PL_YXKD|异形开洞|AecDbX3dPartEntity|(未实现:异形点串格式未接)|| +|PL_YXKD|异形开洞|AecDbX3dPartEntity|add_aec_opening|update_aec_opening| |PL_ZLKD|阵列开洞|AecDbX3dPartEntity|(未实现)|| |PL_YXCG|穿管开洞|AecDbX3dPartEntity|(未实现)|| > 开洞(上表 PL_CDKD / PL_CBKD):洞不是普通实体,是 `AecDbX3dPartEntity` + 对母体做布尔, @@ -338,6 +338,19 @@ MCP 工具是通过 `PostMessage` 在主线程的消息里跑的,**不在命 > 读回 center=(3000, **100**, 1500)(y=100 正是墙厚一半),改直径后仍正常。 > 异形洞(点串脚本格式,PL_YXKD)还没接。 +> **异形洞**(PL_YXKD):同一个 `add_aec_opening`,`shape=polygon` + `points:[[x,y],...]` +> (可选 `bulges`)。内部按 `PolylineToScript`(pool3dcmdCmd.cpp:889)拼成 +> `"x,y@bulge,..."` 点串、首尾自动闭合,中心取点集包围盒中点。已实测:5 边形洞 +> 建出后 center=(1500,1500)(正是点集包围盒中心)、z 落在板厚中点。 +> +> **井**(PL_JFZJ / PL_JYZJ / PL_JFYJ):`add_aec_well`, +> `shape=rect` 方圆井(`length/width/bottom_length/bottom_width`)或 +> `shape=circle` 圆井(`diameter/bottom_diameter`),再给 `height`、`wall_thickness`、 +> 可选 `slab_thickness/offset_x/offset_y/no/remark`。内部照命令 +> (pool3dcmdCmd.cpp:6925 / 6750)先 `SetAsHole(1.1×板厚)` 再 `SetAsWell(...)`, +> 并写 `KEY_SETASWELL/KEY_ASSOIC/KEY_NO/KEY_REM`、挂到板下。 +> 已实测:同一块板上方圆井、圆井各建一个,都返回 handle。 + > 管件族(上表最后 39 行):这些都是同一个实体类 `AecDbEwFitting`,只靠专业数据 > `KEY_RUNTIME` 区分(弯头/变径弯头/三通/四通/大小头/法兰/堵头/箍), > 所以只需要 `add_aec_fitting` / `update_aec_fitting` 两个工具,