Files
Pier_v1/심수석님 검토 파일/검토_운곡교P1/스크립트/column_bottom_in_footing.py
T
ahnyongjooandClaude Sonnet 5.5 964a841de1 chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- 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>
2026-10-28 11:20:18 +09:00

18 lines
1.1 KiB
Python

import ezdxf, sys, math
sys.stdout.reconfigure(encoding='utf-8')
d=ezdxf.readfile(r'D:\★Pier 자료\심수석님 검토 파일\철근 모델랑 운곡교P1_바이브코딩\1.dxf'); ms=d.modelspace()
CXe=12159.4
def z(y): return 26208+(y-8115.6)
for e in ms:
t=e.dxftype()
if t=='LINE' and e.dxf.layer=='CS-RBAR-MAJR':
a,b=e.dxf.start,e.dxf.end
if 11900<min(a.x,b.x) and max(a.x,b.x)<13600 and 8300<min(a.y,b.y) and max(a.y,b.y)<10400 and (abs(a.x-b.x)<0.6 or abs(a.y-b.y)<0.6):
print('LINE (%.1f,%.1f)->(%.1f,%.1f) len %.1f z %.1f..%.1f x-off %.1f..%.1f'%(a.x,a.y,b.x,b.y,math.hypot(a.x-b.x,a.y-b.y),z(min(a.y,b.y)),z(max(a.y,b.y)),min(a.x,b.x)-CXe,max(a.x,b.x)-CXe))
elif t=='ARC':
c=e.dxf.center
if 11900<c.x<13600 and 8300<c.y<10400:
r=e.dxf.radius; sa,ea=e.dxf.start_angle,e.dxf.end_angle
p=lambda a:(c.x+r*math.cos(math.radians(a))-CXe,z(c.y+r*math.sin(math.radians(a))))
print('ARC r=%.1f center (%.1f,%.1f) ang %.1f..%.1f start(xoff,z)=(%.1f,%.1f) end=(%.1f,%.1f)'%(r,c.x,c.y,sa,ea,*p(sa),*p(ea)))