# AutoCAD 練習問題：接線でつなぐリンク

> AutoCAD の上級練習問題。2 つのボスを接線オブジェクト スナップで両方に接する線で結び、間の円弧をトリムして寸法を記入します。手順付きで、ブラウザで無料で練習できます。

次のリンクを描きます(単位は mm)。中心間 90 の 2 つのボスで、半径は 20 と 12、穴の半径は 10 と 6 です。ボスは両方に接する線で結び、線の間の円弧は取り除きます。接線は両端で接線オブジェクト スナップを使って描きます。その後、[`TRIM`](https://mellowcad.com/ja/docs/commands/trim.md)[トリム]コマンドで各ボスの円を円弧にします。

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

## 図面

中心間 90 の 2 つのボスを接線で結んだリンク、寸法付き。

## 手順

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

### 1. ボスを描く

「外形線」画層で、[`CIRCLE`](https://mellowcad.com/ja/docs/commands/circle.md)[円]コマンドで 4 つの円をそれぞれ半径で描きます。`0,0` に `20` と `10`、`90,0` に `12` と `6` です。

1. ボスを描く

```text
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 0,0
Specify radius of circle or [Diameter]: 20
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 0,0
Specify radius of circle or [Diameter] <20.00>: 10
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 90,0
Specify radius of circle or [Diameter] <10.00>: 12
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 90,0
Specify radius of circle or [Diameter] <12.00>: 6
```

### 2. 接線を描く

[`LINE`](https://mellowcad.com/ja/docs/commands/line.md)[線分]コマンドを実行し、`_TAN`(1 点だけに使う接線オブジェクト スナップ)を入力して、大きい円の上部付近を選択します。もう一度 `_TAN` を入力し、小さい円の上部付近を選択します。線分は両方の円に接します。下側も同様に描きます。

2. 接線を描く

```text
Command: LINE
Specify first point: _TAN to
Specify next point or [Undo]: _TAN to
Specify next point or [Undo]:
Command: LINE
Specify first point: _TAN to
Specify next point or [Undo]: _TAN to
Specify next point or [Undo]:
```

### 3. 円弧をトリムする

[`TRIM`](https://mellowcad.com/ja/docs/commands/trim.md) コマンドで、各ボスの 2 本の線の間の、相手のボスに面した側を選択します。内側の円弧が消え、各円は円弧になります。

3. 円弧をトリムする

```text
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]:
```

### 4. 中心線を描く

「中心線」画層で、両方の中心を通る軸線と、各ボスを横切る線を描きます。

4. 中心線を描く

```text
Command: LINE
Specify first point: -26,0
Specify next point or [Undo]: @134,0
Specify next point or [Undo]:
Command: LINE
Specify first point: 0,-26
Specify next point or [Undo]: @0,52
Specify next point or [Undo]:
Command: LINE
Specify first point: 90,-18
Specify next point or [Undo]: @0,36
Specify next point or [Undo]:
```

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

「寸法」画層で、中心間の距離を [`DIMLINEAR`](https://mellowcad.com/ja/docs/commands/dimlinear.md)[長さ寸法記入]コマンド、ボスの半径を [`DIMRADIUS`](https://mellowcad.com/ja/docs/commands/dimradius.md)[半径寸法記入]コマンド、穴を [`DIMDIAMETER`](https://mellowcad.com/ja/docs/commands/dimdiameter.md)[直径寸法記入]コマンドで記入します。

5. 寸法を記入する

```text
Command: DIMLINEAR
Specify first extension line origin or <select object>: 0,0
Specify second extension line origin: @90,0
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 90
Command: DIMRADIUS
Select arc or circle:
Dimension text = 20
Specify dimension line location or [Text/Angle]:
Command: DIMRADIUS
Select arc or circle:
Dimension text = 12
Specify dimension line location or [Text/Angle]:
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 20
Specify dimension line location or [Text/Angle]:
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 12
Specify dimension line location or [Text/Angle]:
```

## ほかの練習問題

- [AutoCAD 3D 練習問題：軸受ブロック](https://mellowcad.com/ja/docs/exercises/bearing-block.md): 上級 · 機械 · 3D ソリッド
- [AutoCAD 練習問題：ガスケット](https://mellowcad.com/ja/docs/exercises/gasket.md): 初級 · 機械 · 2D
- [AutoCAD 練習問題：L 字ブラケット](https://mellowcad.com/ja/docs/exercises/l-bracket.md): 初級 · 機械 · 2D
- [AutoCAD 練習問題](https://mellowcad.com/ja/docs/exercises.md)
