# CAD 練習圖：法蘭

> AutoCAD 機械練習題：在軸孔上修剪出鍵槽，以環形陣列排列 8 個孔，並繪製中心線與直徑標註，附逐步解說。免費線上練習。

繪製此法蘭，單位為公釐：外徑 140，軸孔直徑 60，鍵槽寬 16，其頂邊距中心 36；8 個直徑 14 的孔位於直徑 110 的節圓上，並繪製中心線。鍵槽是修剪進軸孔的矩形；孔則是一個圓加上環形陣列。

- **練習題：** 中級 · 機械 · 2D
- **指令：** [`CIRCLE`](https://mellowcad.com/zh-tw/docs/commands/circle.md), [`RECTANG`](https://mellowcad.com/zh-tw/docs/commands/rectang.md), [`TRIM`](https://mellowcad.com/zh-tw/docs/commands/trim.md), [`ARRAYPOLAR`](https://mellowcad.com/zh-tw/docs/commands/arraypolar.md), [`LINE`](https://mellowcad.com/zh-tw/docs/commands/line.md), [`DIMDIAMETER`](https://mellowcad.com/zh-tw/docs/commands/dimdiameter.md), [`DIMLINEAR`](https://mellowcad.com/zh-tw/docs/commands/dimlinear.md)
- **在編輯器中：** [連同圖面開啟](/zh-tw/draw?drawing=flange)，已標註的圖面就在您繪圖處的旁邊

## 圖面

外徑 140 的法蘭，含鍵槽、8 個孔與直徑標註。

## 逐步解答

引擎繪製每個步驟，並依您輸入的方式寫出其歷程：提示依 AutoCAD 2027 的順序，選項字母也相同。在指令的第一點之後，輸入的點會從上一點量起，如同動態輸入的量法，歷程中以 @ 寫出；\# 則從原點量起。

### 1. 繪製圓

在「輪廓線」圖層上，於 `0,0` 畫兩個圓，各以 `Diameter` 指定：`140` 與 `60`。

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/zh-tw/docs/commands/rectang.md)（矩形）指令從 `-8,20` 畫到相距 `16,16` 處：矩形與軸孔相交。[`TRIM`](https://mellowcad.com/zh-tw/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. 陣列孔

在節圓上畫一個孔：於 `55<22.5`（距原點 55、角度 22.5°）畫一個 `Diameter` 為 `14` 的圓。[`ARRAYPOLAR`](https://mellowcad.com/zh-tw/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/zh-tw/docs/commands/line.md)（線）指令畫兩條通過中心、長 156 的線：橫線從 `-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/zh-tw/docs/commands/dimdiameter.md)（直徑）指令標註軸孔、一個孔、節圓與外輪廓，各在尚無標註穿過的位置點選；再以 [`DIMLINEAR`](https://mellowcad.com/zh-tw/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
```

## 更多練習題

- [CAD 練習圖：圓桌與椅子](https://mellowcad.com/zh-tw/docs/exercises/round-table.md): 中級 · 建築 · 2D
- [CAD 練習圖：土地邊界](https://mellowcad.com/zh-tw/docs/exercises/plot-of-land.md): 中級 · 土木 · 2D
- [CAD 練習圖：階梯軸](https://mellowcad.com/zh-tw/docs/exercises/shaft.md): 中級 · 機械 · 2D
- [AutoCAD 練習題](https://mellowcad.com/zh-tw/docs/exercises.md)
