# Bài tập AutoCAD 2D: trục bậc

> Vẽ trục bậc trong AutoCAD: nửa đường bao là một đa tuyến, vát mép, lấy đối xứng qua trục, và các chiều dài ghi kích thước nối tiếp. Miễn phí, từng bước.

Vẽ trục bậc này trên hình chiếu cạnh, theo milimét: dài 150, với các đường kính 30, 40 và 30 trên các đoạn dài 40, 60 và 50, và cả hai đầu vát mép 2 × 2. Vẽ nửa phía trên trục là một đa tuyến, vát mép nó và lấy đối xứng; rồi các cạnh nhìn thấy ngang qua trục, đường trục và các chiều dài. Các đường kính là những giá trị cho ở đây.

- **Bài tập:** Trung cấp · Cơ khí · 2D
- **Lệnh:** [`PLINE`](https://mellowcad.com/vi/docs/commands/pline.md), [`CHAMFER`](https://mellowcad.com/vi/docs/commands/chamfer.md), [`MIRROR`](https://mellowcad.com/vi/docs/commands/mirror.md), [`LINE`](https://mellowcad.com/vi/docs/commands/line.md), [`DIMLINEAR`](https://mellowcad.com/vi/docs/commands/dimlinear.md), [`DIMCONTINUE`](https://mellowcad.com/vi/docs/commands/dimcontinue.md)
- **Trong trình vẽ:** [Mở cùng bản vẽ của nó](/vi/draw?drawing=shaft), đã ghi kích thước, bên cạnh chỗ bạn vẽ bài của mình

## Bản vẽ

Một trục bậc trên hình chiếu cạnh, dài 150, các chiều dài ghi kích thước nối tiếp.

## Từng bước

Engine vẽ từng bước và ghi lịch sử đúng như bạn sẽ gõ: dòng nhắc theo thứ tự của AutoCAD 2027, với cùng chữ cái lựa chọn. Sau điểm đầu tiên của một lệnh, điểm gõ vào được đo từ điểm trước đó, đúng như cách nhập liệu động đo, và lịch sử ghi nó với @; \# đo từ gốc tọa độ.

### 1. Vẽ nửa trên

Trên lớp “Nét cơ bản”, một đa tuyến bằng lệnh [`PLINE`](https://mellowcad.com/vi/docs/commands/pline.md) từ `0,0`: lên `0,15`, dọc `40,0`, lên `0,5`, dọc `60,0`, xuống `0,-5`, dọc `50,0` và xuống `0,-15`, trở về trục. Enter kết thúc lệnh.

1. Vẽ nửa trên

```text
Command: PLINE
Specify start point: 0,0
Current line-width is 0.00
Specify next point or [Arc/Halfwidth/Length/Undo/Width]: @0,15
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @40,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @0,5
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @60,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @0,-5
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @50,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @0,-15
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
```

### 2. Vát mép hai đầu

Lệnh [`CHAMFER`](https://mellowcad.com/vi/docs/commands/chamfer.md) (vát mép), rồi `Distance`: `2`, và Enter nhận `2` cho cả khoảng cách thứ hai. `Multiple` vát mép góc này đến góc khác mà không phải bắt đầu lại: chọn hai phân đoạn tại góc ở mỗi đầu.

2. Vát mép hai đầu

```text
Command: CHAMFER
(TRIM mode) Current chamfer Dist1 = 0.00, Dist2 = 0.00
Select first line or [Undo/Polyline/Distance/Multiple]: D
Specify first chamfer distance <0.00>: 2
Specify second chamfer distance <2.00>:
Select first line or [Undo/Polyline/Distance/Multiple]: M
Select first line or [Undo/Polyline/Distance/Multiple]:
Select second line or shift-select to apply corner or [Distance]:
Select first line or [Undo/Polyline/Distance/Multiple]:
Select second line or shift-select to apply corner or [Distance]:
Select first line or [Undo/Polyline/Distance/Multiple]:
```

### 3. Lấy đối xứng

Lệnh [`MIRROR`](https://mellowcad.com/vi/docs/commands/mirror.md) (lấy đối xứng): chọn đa tuyến, nhấn Enter, rồi trục đối xứng từ `0,0` đến `150,0`, đường trục, và Enter để giữ bản gốc.

3. Lấy đối xứng

```text
Command: MIRROR
Select objects: 1 found
Select objects:
Specify first point of mirror line: 0,0
Specify second point of mirror line: @150,0
Erase source objects? [Yes/No] <No>:
```

### 4. Vẽ các cạnh

Bằng [`LINE`](https://mellowcad.com/vi/docs/commands/line.md), các cạnh nhìn thấy ngang qua trục, mỗi cạnh `0,30` hướng lên từ phía dưới: từ `2,-15` và `148,-15` tại các chỗ vát mép, và từ `40,-15` và `100,-15` tại các vai trục.

4. Vẽ các cạnh

```text
Command: LINE
Specify first point: 2,-15
Specify next point or [Undo]: @0,30
Specify next point or [Undo]:
Command: LINE
Specify first point: 40,-15
Specify next point or [Undo]: @0,30
Specify next point or [Undo]:
Command: LINE
Specify first point: 100,-15
Specify next point or [Undo]: @0,30
Specify next point or [Undo]:
Command: LINE
Specify first point: 148,-15
Specify next point or [Undo]: @0,30
Specify next point or [Undo]:
```

### 5. Vẽ đường trục

Trên lớp “Đường tâm”, đường trục: một đoạn thẳng từ `-8,0` tới `166,0` tính tiếp từ đó.

5. Vẽ đường trục

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

### 6. Ghi kích thước

Trên lớp “Kích thước”, lệnh [`DIMLINEAR`](https://mellowcad.com/vi/docs/commands/dimlinear.md) cho chiều dài thứ nhất, 40, đặt ở dưới. Lệnh [`DIMCONTINUE`](https://mellowcad.com/vi/docs/commands/dimcontinue.md) (ghi kích thước nối tiếp) tiếp tục từ đường gióng thứ hai của nó: `#100,-20`, rồi `#150,-15`, gõ tính từ gốc tọa độ với #, và Enter hai lần để kết thúc. Một lệnh [`DIMLINEAR`](https://mellowcad.com/vi/docs/commands/dimlinear.md) cuối cùng ghi chiều dài toàn bộ, 150, xa hơn về phía dưới.

6. Ghi kích thước

```text
Command: DIMLINEAR
Specify first extension line origin or <select object>: 0,-13
Specify second extension line origin: @40,-7
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 40
Command: DIMCONTINUE
Specify second extension line origin or [Select/Undo] <Select>: #100,-20
Dimension text = 60
Specify second extension line origin or [Select/Undo] <Select>: #150,-15
Dimension text = 50
Specify second extension line origin or [Select/Undo] <Select>:
Select continued dimension:
Command: DIMLINEAR
Specify first extension line origin or <select object>: 0,-13
Specify second extension line origin: @150,-2
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 150
```

## Bài tập khác

- [Bài tập AutoCAD hình chiếu trục đo: khối bậc](https://mellowcad.com/vi/docs/exercises/isometric-block.md): Trung cấp · Cơ khí · Hình chiếu trục đo
- [Bài tập AutoCAD 3D: puly](https://mellowcad.com/vi/docs/exercises/pulley.md): Trung cấp · Cơ khí · Khối rắn 3D
- [Bài tập AutoCAD 2D: thanh nối với đường tiếp tuyến](https://mellowcad.com/vi/docs/exercises/link.md): Nâng cao · Cơ khí · 2D
- [Bài tập AutoCAD](https://mellowcad.com/vi/docs/exercises.md)
