import ezdxf, sys from collections import defaultdict sys.stdout.reconfigure(encoding='utf-8') d=ezdxf.readfile(r'D:\★Pier 자료\심수석님 검토 파일\철근 모델랑 운곡교P1_바이브코딩\1.dxf'); ms=d.modelspace() def rows(name,x0,x1,y0,y1,cx,yb): R=defaultdict(list) for e in ms: if e.dxftype()=='CIRCLE' and e.dxf.radius==27: c=e.dxf.center if x03: print(' +%.1f'%(y-yb),'n',len(v),'offsets',v[:6],'...',v[-4:]) rows('정면도 (bars along Y end-on, offsets = X)',12100,17000,8000,10400,12159.4,8115.6) rows('측면 단면도 (bars along X end-on, offsets = Y)',30100,34100,8000,10400,30133.6,8115.6)