Files
Pier_v1/Code/review_pipeline/shots_sw.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

35 lines
2.3 KiB
Python

g = {}
SCR = r"C:\Users\User\AppData\Local\Temp\claude\D--Rhino-MCP-rhino-mcp-main\f46b47bc-9105-4079-9b62-fcbee31b26ae\scratchpad"
exec(open(SCR + r"\cap.py", encoding="utf-8").read(), g)
import scriptcontext as sc
import io, json
want = ["P1-R-C7-x-1400_1", "P1-R-C10-L07", "P1-R-C1-y+1500"]
bbs = {}
for o in sc.doc.Objects:
if o.Attributes.Name in want:
bb = o.Geometry.GetBoundingBox(True)
bbs[o.Attributes.Name] = [bb.Min.X, bb.Min.Y, bb.Min.Z, bb.Max.X, bb.Max.Y, bb.Max.Z]
CP = ["P1::코핑"]
FB = [-5300, -1700, 67700, 5300, 1700, 71400]
shots = []
shots.append({"file": "S1.png", "layers": ["P1::철근::코핑::C1"], "names": ["y+1500"], "solids": CP, "view": "Front", "box": FB})
shots.append({"file": "S1b.png", "layers": ["P1::철근::코핑::C1"], "names": ["y+1000"], "solids": CP, "view": "Front", "box": FB})
shots.append({"file": "S2.png", "layers": ["P1::철근::코핑::C5"], "names": ["y+1000"], "solids": CP, "view": "Front", "box": FB})
shots.append({"file": "S3.png", "layers": ["P1::철근::코핑::C7"], "names": ["x-1400_1"], "solids": CP, "view": "Right", "box": [-1800, -1700, 67700, 1800, 1700, 71400]})
shots.append({"file": "S4.png", "layers": ["P1::철근::코핑::C10"], "solids": CP, "view": "Top", "box": [-5300, -1800, 67700, 5300, 1800, 71400]})
shots.append({"file": "S5.png", "layers": ["P1::철근::기초::B8"], "solids": ["P1::기초"], "view": "Top", "box": [-3900, -3900, 42700, 3900, 3900, 45300]})
shots.append({"file": "S6.png", "layers": ["P1::철근::기둥::P1"], "solids": ["P1::기둥"], "view": "Front", "box": [-1500, -1500, 42700, 1500, 1500, 67900]})
b = bbs["P1-R-C7-x-1400_1"]
shots.append({"file": "S7.png", "layers": ["P1::철근::코핑::C7"], "names": ["x-1400_1"], "solids": CP, "view": "Right", "box": [b[0] - 50, b[4] - 450, b[5] - 450, b[3] + 50, b[4] + 50, b[5] + 50]})
shots.append({"file": "S8.png", "layers": ["P1::철근::기둥::P3", "P1::철근::기둥::P4"], "solids": ["P1::기둥"], "view": "Top", "box": [-1500, -1500, 45200, 1500, 1500, 49000]})
for s in shots:
s["mode"] = "Ghosted"
out = []
for s in shots:
try:
out.append(g["run"](s))
except Exception as e:
out.append("ERR " + s["file"] + " " + str(e))
g["restore"]()
io.open(SCR + r"\sw_shots_log.txt", "w", encoding="utf-8").write("\n".join(out) + "\n" + json.dumps(bbs))