""" 수정된 스풀 시스템 사용 예시 """ # 시나리오: A-1 도면에서 파이프 3개 발견 examples = [ { "dwg_name": "A-1", "pipes": [ {"description": "PIPE 1", "user_input_spool": "A"}, # A-1-A {"description": "PIPE 2", "user_input_spool": "A"}, # A-1-A (같은 스풀) {"description": "PIPE 3", "user_input_spool": "B"} # A-1-B (다른 스풀) ], "area_assignment": "#01" # 별도: A-1 도면은 #01 구역에 위치 } ] # 결과: spool_identifiers = [ "A-1-A", # 파이프 1, 2가 속함 "A-1-B" # 파이프 3이 속함 ] area_assignment = { "#01": ["A-1"] # A-1 도면은 #01 구역에 물리적으로 위치 } print("✅ 수정된 스풀 구조가 적용되었습니다!") print(f"스풀 식별자: {spool_identifiers}") print(f"에리어 할당: {area_assignment}")