# 캐드 평면도 그리기

> 캐드로 주택 평면도를 그리는 법. OFFSET(간격띄우기)으로 외벽과 내벽을, TRIM(자르기)으로 개구부를 내고, 열림 궤적이 있는 문, 창, 치수까지 단계별로 그립니다.

평면도는 바닥에서 약 1.5미터 높이에서 집을 수평으로 잘라 위에서 본 그림입니다. 각 벽은 두께를 사이에 둔 두 선으로 그리고, 벽의 개구부, 열림 궤적과 함께 열린 상태로 그린 문, 창, 치수를 더합니다. 이 가이드는 8 × 6미터, 방 두 개짜리 집을 센티미터 단위로 그립니다. 1단위가 1센티미터이므로 외벽 두께는 20, 내벽은 10입니다. 각 단계는 그 도면과, 입력하는 그대로의 명령 사용 내역을 보여 줍니다. 이 페이지 옆에 [편집기를 열고](/ko/draw) 따라 그려 보십시오.

## 도면층 설정하기

객체의 종류마다 색상이 다른 도면층을 따로 두어, 어느 것이든 끌 수 있게 합니다. “벽”, “문”, “창”, “치수”의 네 가지입니다. `LAYER`(도면층 특성) 명령의 도면층 팔레트에서 만들고, 각 단계 전에 도면층 컨트롤에서 해당 도면층을 현재 도면층으로 설정합니다. 치수를 집 크기에 맞게 읽을 수 있도록 `DIMSTYLE`(치수 스타일) 명령에서 치수 스타일의 전체 축척을 설정합니다. 여기서는 12로 설정하므로 치수 문자 높이는 30이 됩니다.

## 외벽 그리기

“벽” 도면층에서 `RECTANG`(직사각형) 명령으로 `0,0`에서 `800,600`까지 직사각형을 그립니다. 이것이 벽의 바깥 면입니다. `OFFSET`(간격띄우기) 명령으로 안쪽 면을 만듭니다. 두께 `20`을 입력하고, 직사각형을 선택한 다음 그 안쪽을 클릭합니다.

외벽. 직사각형과, 그 안쪽으로 20 간격띄우기한 직사각형.

```text
Command: RECTANG
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 0,0
Specify other corner point or [Area/Dimensions/Rotation]: @800,600
Command: OFFSET
Current settings: Erase source=No  Layer=Source  OFFSETGAPTYPE=0
Specify offset distance or [Through/Erase/Layer] <Through>: 20
Select object to offset or [Exit/Undo] <Exit>:
Specify point on side to offset or [Exit/Multiple/Undo] <Exit>:
Select object to offset or [Exit/Undo] <Exit>:
```

## 내벽 그리기

`LINE`(선) 명령으로 `500,20`에서 `0,560`을 입력해 외벽 안쪽 면까지 선을 그리고, `OFFSET`으로 오른쪽에 `10` 간격을 띄웁니다. 이것이 두 방 사이의 벽입니다.

내벽. 선과, 그 오른쪽으로 10 간격띄우기한 선.

```text
Command: LINE
Specify first point: 500,20
Specify next point or [Undo]: @0,560
Specify next point or [Undo]:
Command: OFFSET
Current settings: Erase source=No  Layer=Source  OFFSETGAPTYPE=0
Specify offset distance or [Through/Erase/Layer] <20.00>: 10
Select object to offset or [Exit/Undo] <Exit>:
Specify point on side to offset or [Exit/Multiple/Undo] <Exit>:
Select object to offset or [Exit/Undo] <Exit>:
```

## 개구부 내기

개구부는 벽을 가로지르는 두 선(개구부의 양 끝) 사이를 잘라 냅니다. `LINE`으로 두 선을 그린 다음, `TRIM`(자르기) 명령으로 그 사이의 벽 선을 하나씩 선택해 자릅니다. 현관은 `100,0`에서 폭 90, 실내 문은 `500,200`에서 폭 80, 창은 위쪽 벽의 `200,580`과 오른쪽 벽의 `780,250`에서 폭 120입니다.

개구부 네 곳. 각각 양 끝의 두 선과, 그 사이에서 자른 벽 선.

```text
Command: LINE
Specify first point: 100,0
Specify next point or [Undo]: @0,20
Specify next point or [Undo]:
Command: LINE
Specify first point: 190,0
Specify next point or [Undo]: @0,20
Specify next point or [Undo]:
Command: LINE
Specify first point: 500,200
Specify next point or [Undo]: @10,0
Specify next point or [Undo]:
Command: LINE
Specify first point: 500,280
Specify next point or [Undo]: @10,0
Specify next point or [Undo]:
Command: LINE
Specify first point: 200,580
Specify next point or [Undo]: @0,20
Specify next point or [Undo]:
Command: LINE
Specify first point: 320,580
Specify next point or [Undo]: @0,20
Specify next point or [Undo]:
Command: LINE
Specify first point: 780,250
Specify next point or [Undo]: @20,0
Specify next point or [Undo]:
Command: LINE
Specify first point: 780,370
Specify next point or [Undo]: @20,0
Specify next point or [Undo]:
Command: TRIM
Current settings: Projection=UCS, Edge=None, Mode=Quick
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
Select object to trim or shift-select to extend or [cuTting edges/Crossing/mOde/eRase/Undo]:
```

## 문 그리기

“문” 도면층에서 각 문은 문짝과 열림 궤적으로 그립니다. 문짝은 `LINE`으로 열린 상태로 그리고, 열림 궤적은 `ARC`(호) 명령으로 그립니다. 중심 옵션을 선택한 다음, 경첩 위치를 중심으로 지정하고, 궤적의 시작점과 끝점을 지정합니다. 양 끝은 모두 이미 그린 점(개구부 끝의 모서리와 문짝의 끝)이므로, 한 점에만 쓰는 끝점 객체 스냅 `_END`를 입력하고 각각 선택합니다.

각 문. 90°로 열린 문짝과 그 열림 궤적의 호.

```text
Command: LINE
Specify first point: 100,20
Specify next point or [Undo]: @0,90
Specify next point or [Undo]:
Command: ARC
Specify start point of arc or [Center]: C
Specify center point of arc: 100,20
Specify start point of arc: _END of
Specify end point of arc (hold Ctrl to switch direction): _END of
Command: LINE
Specify first point: 510,200
Specify next point or [Undo]: @80,0
Specify next point or [Undo]:
Command: ARC
Specify start point of arc or [Center]: C
Specify center point of arc: 510,200
Specify start point of arc: _END of
Specify end point of arc (hold Ctrl to switch direction): _END of
```

## 창 그리기

“창” 도면층에서 `RECTANG`으로 개구부 끝에서부터 각 개구부를 채우는 직사각형을 그리고, 가운데를 지나는 선으로 유리를 나타냅니다.

창. 각 개구부의 직사각형과 유리를 나타내는 선.

```text
Command: RECTANG
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 200,580
Specify other corner point or [Area/Dimensions/Rotation]: @120,20
Command: LINE
Specify first point: 200,590
Specify next point or [Undo]: @120,0
Specify next point or [Undo]:
Command: RECTANG
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 780,250
Specify other corner point or [Area/Dimensions/Rotation]: @20,120
Command: LINE
Specify first point: 790,250
Specify next point or [Undo]: @0,120
Specify next point or [Undo]:
```

## 치수 기입하기

“치수” 도면층에서 `DIMLINEAR`(선형) 명령으로 외부 치수를 기입하고, 이어서 안쪽에서 방의 치수를 기입합니다. 첫 번째 방의 폭은 `DIMLINEAR`로, 내벽과 두 번째 방은 `DIMCONTINUE`(연속) 명령으로 기입합니다. 점은 `#` 기호를 붙여 원점에서 입력합니다.

치수를 기입한 평면도. 외부 800 × 600과 안쪽의 방.

```text
Command: DIMLINEAR
Specify first extension line origin or <select object>: 0,0
Specify second extension line origin: @800,0
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 800
Command: DIMLINEAR
Specify first extension line origin or <select object>: 0,0
Specify second extension line origin: @0,600
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 600
Command: DIMLINEAR
Specify first extension line origin or <select object>: 20,20
Specify second extension line origin: @480,0
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 480
Command: DIMCONTINUE
Specify second extension line origin or [Select/Undo] <Select>: #510,20
Dimension text = 10
Specify second extension line origin or [Select/Undo] <Select>: #780,20
Dimension text = 270
Specify second extension line origin or [Select/Undo] <Select>:
Select continued dimension:
```

## 다음 단계

- `TEXT`(단일 행 문자) 명령으로 각 방의 이름을 쓰고, `HATCH`(해치) 명령으로 벽을 채웁니다. 점은 벽의 두 선 사이에서 선택합니다.
- [연습도면](https://mellowcad.com/ko/docs/exercises.md)으로 연습합니다. [계단 평면도](https://mellowcad.com/ko/docs/exercises/stairs.md)와 [원형 테이블과 의자](https://mellowcad.com/ko/docs/exercises/round-table.md)도 센티미터 단위로 그립니다.
- [좌표 입력](https://mellowcad.com/ko/docs/coordinates.md): 점을 입력하는 모든 방법.
