# CAD 练习图：法兰盘

> AutoCAD 机械练习图：在轴孔上修剪出键槽，用环形阵列画出 8 个孔，再画中心线并标注直径。附分步解答，可免费在线练习。

按以下尺寸绘制法兰盘（单位：mm）：外径 140；轴孔直径 60，带一个宽 16 的键槽，键槽顶边距圆心 36；8 个直径 14 的孔均布在直径 110 的螺栓孔中心圆上；另画出中心线。键槽由一个矩形修剪进轴孔而成；孔由一个圆和环形阵列得到。

- **练习：** 中级 · 机械 · 二维
- **命令：** [`CIRCLE`](https://mellowcad.com/zh-cn/docs/commands/circle.md), [`RECTANG`](https://mellowcad.com/zh-cn/docs/commands/rectang.md), [`TRIM`](https://mellowcad.com/zh-cn/docs/commands/trim.md), [`ARRAYPOLAR`](https://mellowcad.com/zh-cn/docs/commands/arraypolar.md), [`LINE`](https://mellowcad.com/zh-cn/docs/commands/line.md), [`DIMDIAMETER`](https://mellowcad.com/zh-cn/docs/commands/dimdiameter.md), [`DIMLINEAR`](https://mellowcad.com/zh-cn/docs/commands/dimlinear.md)
- **在编辑器中：** [连同图形一起打开](/zh-cn/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-cn/docs/commands/rectang.md)（矩形）命令画矩形：从 `-8,20` 起，再输入相对坐标 `16,16`。矩形与轴孔相交。[`TRIM`](https://mellowcad.com/zh-cn/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-cn/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-cn/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-cn/docs/commands/dimdiameter.md)（直径）命令标注轴孔、一个孔、螺栓孔中心圆和外轮廓，每个都在尚无标注穿过的位置拾取；再用 [`DIMLINEAR`](https://mellowcad.com/zh-cn/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-cn/docs/exercises/round-table.md): 中级 · 建筑 · 二维
- [CAD 练习图：地块](https://mellowcad.com/zh-cn/docs/exercises/plot-of-land.md): 中级 · 土木 · 二维
- [CAD 练习图：阶梯轴](https://mellowcad.com/zh-cn/docs/exercises/shaft.md): 中级 · 机械 · 二维
- [AutoCAD 练习图](https://mellowcad.com/zh-cn/docs/exercises.md)
