company-desktop
a15d04b665
feat: cad_mcp_aec 增加管件工具(add/update_aec_fitting)
按"先做管件"开工。管件族(弯头/变径弯头/三通/四通/大小头/法兰/堵头/箍)都是同一个
类 AecDbEwFitting,只靠专业数据 KEY_RUNTIME 区分,所以只加了两个工具:
- add_aec_fitting:position + direction/branch_direction + dn_mm/od_mm/wall_thickness_mm
+ type(elbow/reduce_elbow/reduce/tee/cross/lateral/wye/flange/cap/coupling)
+ ratio/connect/system/material/color/layer/space。
- update_aec_fitting:只改传入字段(含 type,改 type 就是换管件)。
专业数据按 TDbPipeLine::FillConfigXDataMap(PipelineCmd/AecPipeLine.cpp:3204)的
最小可用子集写:KEY_RUNTIME / KEY_MID / KEY_MAJBR / KEY_MINBR、PIPE_DN / PIPE_OD /
PIPE_TDN / PIPE_TOD / PIPE_D / PIPE_THICK / PIPE_RATIO、PIPE_CONNECT / PIPE_COLOR /
PIPE_SYS / PIPE_MATERIAL,创建时补 KEY_2DSTYLE / KEY_SINGLE / PIPE_RRADFLG /
KEY_RadRatio / PIPE_DRAWDIR。查库才能拿到的接口尺寸(PIPE_INTERFACED/L 等)先不填,
绘制时按 DN/外径/壁厚/曲率自算。
query_aec_entities / get_aec_entity_detail 也支持 fitting(读回 type/position/方向/
口径/曲率/连接方式/系统/材质/颜色)。
实测(AutoCAD 2020 / R230 Debug,pcf_1.dwg):
- tools/list = 44;
- add_aec_fitting(type=elbow, DN100/OD114/壁厚4) 建出 handle 3A1,zoom_extents 后
get_aec_entity_detail 的包围盒是 0.05/0.10/0.05 量级 —— 说明几何真的建出来了;
- update(type=tee, dn=150) 后读回 type=tee / dn_mm=150,其余字段保持;
- query_aec_entities(type=fitting) 命中 34 条(含图纸原有的 33 个管件)。
2026-10-30 08:48:02 +08:00
..
2026-10-04 00:04:20 +08:00
2026-10-30 08:47:58 +08:00
2026-10-04 00:04:20 +08:00
2026-10-30 08:48:02 +08:00
2026-10-29 06:33:19 +08:00
2026-10-29 22:45:14 +08:00
2026-09-28 15:28:50 +08:00
2026-10-28 22:09:48 +08:00
2026-09-28 15:53:36 +08:00
2026-10-30 08:39:35 +08:00
2026-10-04 00:04:20 +08:00
2026-10-21 23:39:47 +08:00
2026-10-04 00:04:20 +08:00
2026-10-23 10:29:31 +08:00
2026-10-13 09:55:42 +08:00
2026-10-30 08:39:35 +08:00
2026-10-04 00:04:20 +08:00
2026-10-04 00:04:20 +08:00
2026-10-13 09:55:42 +08:00
2026-10-04 00:04:20 +08:00
2026-10-25 11:05:18 +08:00
2026-10-13 09:55:42 +08:00
2026-10-23 10:29:31 +08:00
2026-10-23 10:29:31 +08:00
2026-10-04 00:04:20 +08:00
2026-10-04 00:04:20 +08:00
2026-10-04 00:04:20 +08:00
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
2026-10-04 00:04:20 +08:00
2026-09-28 15:28:50 +08:00
2026-10-29 23:51:31 +08:00
2026-09-28 15:28:50 +08:00
2026-09-28 15:42:32 +08:00
2026-09-28 15:42:32 +08:00
2026-09-28 15:42:32 +08:00
2026-09-28 15:28:50 +08:00
2026-09-28 15:42:32 +08:00