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(%.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