49 lines
1.7 KiB
Markdown
49 lines
1.7 KiB
Markdown
# DXF 정리 (Hyein/issue-sample)
|
|
|
|
`dxf` 작업을 아래 두 주제로 분리해서 정리했습니다.
|
|
|
|
1. 레이어 기반 위치 키 지정
|
|
2. 블록 정보 추출 + 도면 분할 표시
|
|
|
|
## 1) 레이어 기반 위치 키 지정
|
|
|
|
- 스크립트: `dxf/layer_position_keys.mjs`
|
|
- 목적: DXF 엔티티의 `layer + 위치(grid)` 기준 키 생성
|
|
- 출력: `dxf/layer_position_keys.json`
|
|
|
|
실행 예시:
|
|
|
|
```bash
|
|
node dxf/layer_position_keys.mjs --input dxf/center.dxf --output dxf/layer_position_keys.json --cell 2000
|
|
```
|
|
|
|
키 포맷:
|
|
|
|
- `LAYER::R{row}C{col}::####`
|
|
- 예: `CHAIR_A::R3C2::0014`
|
|
|
|
## 2) 블록 정보 추출 + 도면 분할 표시
|
|
|
|
- 스크립트: `dxf/block_partition_report.mjs`
|
|
- 목적: DXF `INSERT` 기반 블록 배치/크기/영역(zone) 추출
|
|
- 출력:
|
|
- `dxf/block_partition_report.json`
|
|
- `dxf/block_partition_report.html`
|
|
|
|
실행 예시:
|
|
|
|
```bash
|
|
node dxf/block_partition_report.mjs --input dxf/center.dxf --json dxf/block_partition_report.json --html dxf/block_partition_report.html --split 4
|
|
```
|
|
|
|
`--split 4` 는 전체 도면을 4x4 zone으로 분할해 `zoneKey`를 부여합니다.
|
|
|
|
## Gitea 이슈 정리
|
|
|
|
- [#37 [dxf] 레이어 기반 위치 키 체계](https://gitea.hmac.kr/Hyein/issue-sample/issues/37)
|
|
- [#38 [dxf] 블록 추출 및 도면 분할 리포트](https://gitea.hmac.kr/Hyein/issue-sample/issues/38)
|
|
- [#33 [dxf] 레이어 규칙 및 위치 키 스키마 정의](https://gitea.hmac.kr/Hyein/issue-sample/issues/33)
|
|
- [#34 [dxf] 레이어 위치 키 결과 검증](https://gitea.hmac.kr/Hyein/issue-sample/issues/34)
|
|
- [#35 [dxf] 블록 추출 파이프라인 구현](https://gitea.hmac.kr/Hyein/issue-sample/issues/35)
|
|
- [#36 [dxf] 도면 분할 뷰어 및 zone 정보 제공](https://gitea.hmac.kr/Hyein/issue-sample/issues/36)
|