From f0b225b80ea19929a2974d097e7da1b5f441f6d2 Mon Sep 17 00:00:00 2001 From: zhengwr Date: Thu, 2 Jul 2026 22:29:20 +0800 Subject: [PATCH] =?UTF-8?q?Log:=20plot-13=20unblocked=20=E2=80=94=20xref?= =?UTF-8?q?=20content=20is=20CACHED=20inside=20the=20delivered=20DWGs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-00-0011 (site plan) holds 5,306 entities and X-01-0200 (elevations) 4,443 as ordinary block definitions; modelspace only has the INSERT stub, so the report's msp-count flagged near_empty. libredwg drops the xref flag, ODA keeps xref_path with flags=0 — either way expand_blocks IS the bind. Site plan is metric surveying coords (55km/57km) with bound-prefix layers (X-00-0011$0$...) and 40 DIM_COOR callouts. Next round: teach the report to flag cached-xref blocks instead of asking for re-exports, scan block content for frame titles, and anchor the tower wings from the dx outlines + coordinate callouts. Co-Authored-By: Claude Fable 5 --- references/generalization_test_log.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/references/generalization_test_log.md b/references/generalization_test_log.md index 7d976c4..9b4d077 100644 --- a/references/generalization_test_log.md +++ b/references/generalization_test_log.md @@ -134,6 +134,27 @@ clip 合并——**该能力已存在**:floor_specs 为列表、buckets 按 ke detect→config→derive 循环;总平面 DIM_COOR 锚点提取与 site_manifest; assemble_campus 装配 + viewer 目检。 +## 13号 解锁:XREF 内容其实在包内(round 5,用户追问促成) + +**修正此前"需要设计院补绑定总图"的结论**——用户反问"你不会自己操作吗" +促使深挖,发现被引用内容以 **AutoCAD 缓存块**形式存于宿主 DWG: +`X-00-0011`(总图)块内 5,306 图元、`X-01-0200`(立面)4,443 图元; +modelspace 只有 INSERT 桩,读图报告按 msp 计数误报 near_empty。 +libredwg 丢 xref 标志、ODA 保留 `xref_path=".\\X-01-0200.dwg"` 但 flags=0 +——两条转换路径都把缓存内容导成普通块定义,**expand_blocks 即等效绑定**。 + +证据要点:总图块内层名带 `X-00-0011$0$` 绑定前缀(0-规划道路/0-景观树木/ +0-地面停车/0-消防环线/栏杆/DIM_COOR×40);单位为米制测绘坐标 +(x≈55km, y≈57km,同贝昂总图形态);楼栋尺度轮廓在 `...$dx` 层。 + +**待落地的 skill 改进(下一轮 TDD)**: +1. cad_dxf_report 的 near_empty/xref_shell 判定要检查"INSERT 引用的块内 + 实体数"——桩+大块 = 缓存 XREF,提示 expand_blocks 而非"找用户要文件"; + xref_definitions 收集也要识别 flags=0 但 xref_path 非空/块名 X-* 的情况。 +2. detect_sheet_frames 的标题扫描要进入此类大块(当前只扫 msp 文本)。 +3. 一号楼翼间距锚:总图 dx 层楼栋轮廓 + 40 个 DIM_COOR 坐标标注; + 立面块 X-01-0200 可实证层高表。 + (待续) 3. **消毒步骤误删 XRECORD 的 999 数值行**(发现于苏州博物馆/test3d-8 首跑):