# AutoCAD で間取り図を描く

> AutoCAD での間取り図・平面図の書き方。OFFSET で外壁、内壁を作り、TRIM で開口部を切り、開閉軌跡付きのドア、窓、寸法までを順に描きます。

間取り図(平面図)は、住宅を床から約 1.5 メートルの高さで水平に切断し、上から見た図です。各壁を厚さを挟んだ 2 本の線で描き、壁の開口部、開閉軌跡とともに開いた状態で描くドア、窓、寸法を加えます。このガイドでは、8 × 6 メートルの 2 部屋の住宅をセンチメートル単位で描きます。1 単位が 1 センチメートルなので、外壁の厚さは 20、内壁は 10 です。各ステップで、図面と、入力したとおりのコマンド ラインの履歴を示します。このページの横で[エディタを開き](/ja/draw)、手順に沿って作図してください。

## 画層を設定する

オブジェクトの種類ごとに専用の画層と色を用意し、どれでも非表示にできるようにします。「壁」「ドア」「窓」「寸法」の 4 つです。`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` 離して複写すると、2 部屋の間の壁になります。

内壁。線分と、その 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>:
```

## 開口部を切る

開口部は、壁を横切る 2 本の線(開口部の両端)の間を切り取って作ります。`LINE` でその 2 本を描き、`TRIM`[トリム]コマンドで、その間の壁の線を 1 本ずつ選択してトリムします。玄関は `100,0` から幅 90、内部のドアは `500,200` から幅 80、窓は上の壁の `200,580` と右の壁の `780,250` から幅 120 です。

4 つの開口部。それぞれ両端の 2 本の線と、その間でトリムした壁の線。

```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`[円弧]コマンドで描きます。中心のオプションを選び、丁番の位置を中心として指定してから、軌跡の始点と終点を指定します。両端はどちらも既に描いた点(開口部の端の角と扉の先端)なので、1 点だけに使う端点オブジェクト スナップ `_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`[長さ寸法記入]コマンドで外形寸法を記入し、続いて内側から部屋の寸法を記入します。1 つ目の部屋の幅を `DIMLINEAR` で、内壁と 2 つ目の部屋を `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`[ハッチング]コマンドで塗り潰します。点は壁の 2 本の線の間で選択します。
- [練習問題](https://mellowcad.com/ja/docs/exercises.md)で練習します。[平面図の階段](https://mellowcad.com/ja/docs/exercises/stairs.md)と[丸テーブルと椅子](https://mellowcad.com/ja/docs/exercises/round-table.md)も、センチメートル単位で描きます。
- [座標入力](https://mellowcad.com/ja/docs/coordinates.md)：点を入力するすべての方法。
