3.7 KiB
Multi-Frame Sheets and TArch/天正
Contents
- Detecting sheet walls
- Alignment evidence
- Titles and storeys
- Clip risks
- TArch mapping preset
Detecting Sheet Walls
Chinese architectural DWGs often place all plans, elevations, sections, and details in one modelspace. Run detect_sheet_frames.py; never model the whole file as one floor.
The detector:
- scans plan titles in modelspace and cached blocks;
- rejects catalog/title-block copies and auxiliary titles;
- prefers title-block INSERT bboxes over pitch-only windows;
- expands enumerated/ranged titles such as
三、五层and十一至十四层; - emits a config skeleton plus a Markdown evidence report.
Pass every detector output config to audit with --frames. Account for every detected plan frame in extraction config or discarded_frames with a nonempty reason.
The detector emits sheet-level proposals. Two different plan titles can sit inside one title-block/frame INSERT and therefore receive the same broad clip (for example 一层平面图 plus 夹层平面图, or 二层平面图 plus 十六层平面图). Never duplicate that shared clip across floors. Split it at the wall-cluster gap between title positions, then recompute each floor offset. Use independent declared area/storey evidence to prove the split; a roughly 2× footprint is the characteristic failure signal.
Alignment Evidence
Prefer structural-grid voting. TArch grids often live on DOTE, not AXIS. When through grids are absent, accept tick-grid voting. When no axes exist, use wall-profile correlation independently in X/Y. Use clip-corner anchoring only as a weak fallback.
Require overlay review for WEAK grid match and wall-correlated results. The audit cross-floor datum gate must reject a strong correlation peak at a nonzero shift; envelope centers alone cannot detect a floor placed into the wrong tower slot.
Never stack frames without offsets. That preserves sheet-layout pitch and creates the classic diagonal staircase building.
Titles and Storeys
Read per-frame elevation ladders from section/elevation frames, but treat suggested storey tables as evidence rather than truth. Stair sections can contain half-storey rhythms; podium, machine-room, and roof heights differ.
Set explicit z, height, and floor_order. The schema rejects floor-order gaps and ghost keys.
Clip Risks
Title-block or refined clips can still swallow adjacent rows, details, legends, or revision tables. Investigate when a footprint dimension is 2-4x its siblings, exceeds declared area, or contains distant sliver polygons. Tighten both X/Y clip bands or use evidence-backed isolated-cluster filtering; do not simply raise noise thresholds until the artifact disappears. Inspect the final browser screenshot too: repeated floating strips at every storey usually mean off-envelope plan symbols survived the clip.
TArch Mapping Preset
Start consciously from this calibration, then inspect actual top layers:
- walls:
WALL,*WALL*,*墙* - columns:
COLUMN,*COL* - glazing:
CURTWALL,*GLAZ*,*幕墙*,*玻璃* - roof:
屋面,*屋顶* - detail:
STAIR,EVTR,平面,开口 - grid:
DOTE,AXIS
Doors/windows may both be INSERTs on WINDOW, with leaf geometry on layer 0. Use block-name classification:
{
"expand_blocks": ["$TCHSYS$*", "$DorLib2D$*"],
"block_name_categories": {
"glazing": ["$TCHSYS$WIN2D*"],
"doors": ["$DorLib2D$*"]
}
}
Exclude annotation/frame layers such as *-IDEN, *图签*, PUB_*, DIM_*, *TEXT*, 面积核算, 格子线, SEC-*, 立面, 剖面, 家具. TArch column fills can be HATCH-only; pull structure from the structural drawing set instead of inventing columns.