# AutoCAD 練習問題：フランジ

> AutoCAD の機械系練習図面。軸穴にキー溝をトリムで切り込み、8 つの穴を円形状配列複写して、中心線と直径寸法を記入します。手順付きで、ブラウザで無料で練習できます。

次のフランジを描きます(単位は mm)。外径は 140 で、直径 60 の軸穴に幅 16 のキー溝(上端は中心から 36)があり、ピッチ円直径 110 の上に直径 14 の穴が 8 つあります。中心線も描きます。キー溝は軸穴に重ねた長方形をトリムして作り、穴は 1 つの円と円形状配列複写で作ります。

- **練習問題：** 中級 · 機械 · 2D
- **コマンド：** [`CIRCLE`](https://mellowcad.com/ja/docs/commands/circle.md), [`RECTANG`](https://mellowcad.com/ja/docs/commands/rectang.md), [`TRIM`](https://mellowcad.com/ja/docs/commands/trim.md), [`ARRAYPOLAR`](https://mellowcad.com/ja/docs/commands/arraypolar.md), [`LINE`](https://mellowcad.com/ja/docs/commands/line.md), [`DIMDIAMETER`](https://mellowcad.com/ja/docs/commands/dimdiameter.md), [`DIMLINEAR`](https://mellowcad.com/ja/docs/commands/dimlinear.md)
- **エディタで：** [図面付きで開く](/ja/draw?drawing=flange)。寸法付きの図面が、自分で作図する場所の隣に表示されます

## 図面

外径 140 のフランジ。キー溝、8 つの穴、直径寸法付き。

## 手順

エンジンが各手順を作図し、その履歴を入力するとおりに書き出します。プロンプトは AutoCAD 2027 と同じ順序で、オプションの文字も同じです。コマンドの最初の点の後は、ダイナミック入力と同じく、入力した点は直前の点から測られ、履歴には @ を付けて書かれます。\# を付けると原点から測ります。

### 1. 円を描く

「外形線」画層で、`0,0` を中心に、それぞれ `Diameter` で `140` と `60` の円を 2 つ描きます。

1. 円を描く

```text
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 0,0
Specify radius of circle or [Diameter]: D
Specify diameter of circle: 140
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 0,0
Specify radius of circle or [Diameter] <70.00>: D
Specify diameter of circle <140.00>: 60
```

### 2. キー溝を切る

[`RECTANG`](https://mellowcad.com/ja/docs/commands/rectang.md)[長方形]コマンドで、`-8,20` から `16,16` 先まで描きます。長方形は軸穴と交差します。[`TRIM`](https://mellowcad.com/ja/docs/commands/trim.md)[トリム]コマンドは、ほかのオブジェクトと交差する位置でオブジェクトを切り取ります。長方形の両辺の間で軸穴の円弧を選択し、次に軸穴の内側で長方形の下辺を選択します。残ったものがキー溝、つまりその両側面と上端です。

2. キー溝を切る

```text
Command: RECTANG
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: -8,20
Specify other corner point or [Area/Dimensions/Rotation]: @16,16
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]:
```

### 3. 穴を配列複写する

ピッチ円上に穴を 1 つ描きます。`55<22.5`(原点から 55、22.5° の位置)に、`Diameter` `14` の円を描きます。[`ARRAYPOLAR`](https://mellowcad.com/ja/docs/commands/arraypolar.md)[円形状配列複写]コマンドでその円を選択し、[Enter]を押して中心 `0,0` を指定します。`ASsociative` で `No` を選ぶと、寸法記入で選択できる 8 つの個別の円になり、`Items` で `8` を指定すると、円周全体に配置されます。次に「中心線」画層で、`0,0` にピッチ円を直径 `110` で描きます。

3. 穴を配列複写する

```text
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 55<22.5
Specify radius of circle or [Diameter] <30.00>: D
Specify diameter of circle <60.00>: 14
Command: ARRAYPOLAR
Select objects: 1 found
Select objects:
Type = Polar  Associative = Yes
Specify center point of array: 0,0
Select grip to edit array or [ASsociative/Items/Angle between/Fill angle/ROTate items/eXit]<eXit>: AS
Create associative array [Yes/No] <Yes>: N
Select grip to edit array or [ASsociative/Items/Angle between/Fill angle/ROTate items/eXit]<eXit>: I
Enter number of items in array <6>: 8
Select grip to edit array or [ASsociative/Items/Angle between/Fill angle/ROTate items/eXit]<eXit>: X
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 0,0
Specify radius of circle or [Diameter] <7.00>: D
Specify diameter of circle <14.00>: 110
```

### 4. 中心線を描く

続けて「中心線」画層で、[`LINE`](https://mellowcad.com/ja/docs/commands/line.md)[線分]コマンドで中心を通る長さ 156 の線を 2 本描きます。横の線は `-78,0` から右へ `156,0`、縦の線は `0,-78` から上へ `0,156` で描きます。

4. 中心線を描く

```text
Command: LINE
Specify first point: -78,0
Specify next point or [Undo]: @156,0
Specify next point or [Undo]:
Command: LINE
Specify first point: 0,-78
Specify next point or [Undo]: @0,156
Specify next point or [Undo]:
```

### 5. 寸法を記入する

「寸法」画層で、[`DIMDIAMETER`](https://mellowcad.com/ja/docs/commands/dimdiameter.md)[直径寸法記入]コマンドで軸穴、穴 1 つ、ピッチ円、外形に記入します。それぞれ、まだ寸法が交差していない位置で選択します。次に [`DIMLINEAR`](https://mellowcad.com/ja/docs/commands/dimlinear.md)[長さ寸法記入]コマンドで、キー溝の上端の幅 16 を記入します。

5. 寸法を記入する

```text
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 60
Specify dimension line location or [Text/Angle]:
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 14
Specify dimension line location or [Text/Angle]:
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 110
Specify dimension line location or [Text/Angle]:
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 140
Specify dimension line location or [Text/Angle]:
Command: DIMLINEAR
Specify first extension line origin or <select object>: -8,36
Specify second extension line origin: @16,0
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 16
```

## ほかの練習問題

- [AutoCAD 練習問題：丸テーブルと椅子](https://mellowcad.com/ja/docs/exercises/round-table.md): 中級 · 建築 · 2D
- [AutoCAD 練習問題：敷地の区画](https://mellowcad.com/ja/docs/exercises/plot-of-land.md): 中級 · 土木 · 2D
- [AutoCAD 練習問題：段付き軸](https://mellowcad.com/ja/docs/exercises/shaft.md): 中級 · 機械 · 2D
- [AutoCAD 練習問題](https://mellowcad.com/ja/docs/exercises.md)
