- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환 - Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용 - pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관) - worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md) - D:\Rhino-MCP 경로 참조를 새 위치로 치환 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
19 lines
741 B
Python
19 lines
741 B
Python
"""Dump DIMENSION entities (defpoints, measurement, text) of a region (read only)."""
|
|
import sys
|
|
from dxftools import doc
|
|
|
|
lab = sys.argv[1]
|
|
x0, y0, x1, y1 = map(float, sys.argv[2:6])
|
|
for e in doc(lab).modelspace().query("DIMENSION"):
|
|
p = e.dxf.defpoint
|
|
q2, q3 = e.dxf.get("defpoint2"), e.dxf.get("defpoint3")
|
|
pts = [v for v in (p, q2, q3) if v is not None]
|
|
if not any(x0 <= v.x <= x1 and y0 <= v.y <= y1 for v in pts):
|
|
continue
|
|
try:
|
|
m = e.get_measurement()
|
|
except Exception:
|
|
m = None
|
|
f = lambda v: f"({v.x:.1f},{v.y:.1f})" if v is not None else "-"
|
|
print(e.dxf.handle, f"{m:.1f}" if isinstance(m, float) else m, repr(e.dxf.get("text", "")), f(q2), f(q3), f(p), e.dxf.get("angle", 0))
|