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>
This commit is contained in:
commit
964a841de1
3978 files changed
+58013356
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import sys, re, json
|
||||
sys.path.insert(0, 'pylib')
|
||||
import ezdxf
|
||||
f = sys.argv[1]
|
||||
d = ezdxf.readfile(f)
|
||||
m = d.modelspace()
|
||||
rows = []
|
||||
FONT = re.compile(r'\\f[^;]*;')
|
||||
for e in m:
|
||||
if e.dxftype() == 'MTEXT':
|
||||
t = e.text
|
||||
t = FONT.sub('', t).replace('{', '').replace('}', '').replace('\\P', ' / ')
|
||||
rows.append((round(e.dxf.insert.x), round(e.dxf.insert.y), e.dxf.layer, t.strip(), round(e.dxf.char_height, 1)))
|
||||
elif e.dxftype() == 'TEXT':
|
||||
rows.append((round(e.dxf.insert.x), round(e.dxf.insert.y), e.dxf.layer, e.dxf.text, round(e.dxf.height, 1)))
|
||||
json.dump(rows, open(sys.argv[2], 'w', encoding='utf-8'), ensure_ascii=False)
|
||||
print(len(rows))
|
||||
ex = [r for r in rows if 'H32' in r[3]][:3]
|
||||
print(ex)
|
||||
print(rows[:15])
|
||||
Reference in new issue
Block a user