From 15fce7516f2c123fadbaa151a74f820d15b19f62 Mon Sep 17 00:00:00 2001 From: company-desktop-computer Date: Fri, 30 Oct 2026 22:40:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=20scheam=20=E6=BC=8F=E9=A1=B9?= =?UTF-8?q?=EF=BC=9Aadd=5Faec=5Fwell=20=E7=BC=BA=20sump=EF=BC=88=E9=9B=86?= =?UTF-8?q?=E6=B0=B4=E5=9D=91=EF=BC=89=E3=80=81update=5Faec=5Fwell=20?= =?UTF-8?q?=E7=BC=BA=20angle=5Fdeg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一版加集水坑时,代码里的 shape 分派和 mcp_config.json 都加了 sump, 但 cpp 里 private_input_schema 的 enum 只列了 4 种、description 也没提集水坑, LLM 读 schema 时看不到这条路;update_aec_well 同理少了 angle_deg(放坡角)。 代码本身支持(ApplyWell 读 angle_deg),只是对外没声明。补上后 tools/list 仍为 53。 --- .../Code2026/cad_mcp_aec/aec_mcp_entity_tools.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SourceCode/Code2026/cad_mcp_aec/aec_mcp_entity_tools.cpp b/SourceCode/Code2026/cad_mcp_aec/aec_mcp_entity_tools.cpp index b1778eb..36997cb 100644 --- a/SourceCode/Code2026/cad_mcp_aec/aec_mcp_entity_tools.cpp +++ b/SourceCode/Code2026/cad_mcp_aec/aec_mcp_entity_tools.cpp @@ -2409,9 +2409,11 @@ public: std::string private_description() const override { - return "在池底板上加井(对应菜单命令 方井 PL_JFZJ / 圆井 PL_JYZJ / 方圆井 PL_JFYJ / 异形井 PL_JYXJ):" - "给母体板 handle、井位与尺寸,内部先开洞再叠井体(AecDbX3dPartEntity),自动挂到板下(LAY_HOLE)。" - "shape=rect 方井 / circle 圆井 / rect_circle 方圆井 / polygon 异形井。尺寸用图纸单位。"; + return "在池底板上加井(对应菜单命令 方井 PL_JFZJ / 圆井 PL_JYZJ / 方圆井 PL_JFYJ / " + "异形井 PL_JYXJ / 集水坑 PL_JJSK):给母体板 handle、井位与尺寸,内部先开洞再叠井体" + "(AecDbX3dPartEntity),自动挂到板下(LAY_HOLE)。" + "shape=rect 方井 / circle 圆井 / rect_circle 方圆井 / polygon 异形井 / sump 集水坑。" + "集水坑在方井基础上多一个放坡角 angle_deg(缺省 22.5°,0~75)与板厚 slab_thickness。尺寸用图纸单位。"; } nlohmann::json private_input_schema() const override @@ -2420,8 +2422,8 @@ public: "type": "object", "properties": { "host": { "type": "string", "description": "母体板(池底板)的 handle" }, - "shape": { "type": "string", "enum": [ "rect", "circle", "rect_circle", "polygon" ], - "description": "rect=方井(缺省,上口矩形/下口矩形)/ circle=圆井 / rect_circle=方圆井(上口矩形、下口圆)/ polygon=异形井(上下口点串)" }, + "shape": { "type": "string", "enum": [ "rect", "circle", "rect_circle", "polygon", "sump" ], + "description": "rect=方井(缺省,上口矩形/下口矩形)/ circle=圆井 / rect_circle=方圆井(上口矩形、下口圆)/ polygon=异形井(上下口点串)/ sump=集水坑(矩形井 + 放坡角)" }, "position": { "type": "array", "items": { "type": "number" }, "description": "井位 [x,y]" }, "length": { "type": "number", "description": "上口长(X 向,rect / rect_circle)" }, "width": { "type": "number", "description": "上口宽(Y 向,rect / rect_circle)" }, @@ -2573,6 +2575,7 @@ public: "bulges": { "type": "array", "items": { "type": "number" } }, "height": { "type": "number" }, "wall_thickness": { "type": "number" }, "slab_thickness": { "type": "number" }, + "angle_deg": { "type": "number", "description": "集水坑放坡角(度,0~75)" }, "offset_x": { "type": "number" }, "offset_y": { "type": "number" }, "no": { "type": "string" }, "remark": { "type": "string" }, "purpose": { "type": "string" } },