# AutoCAD exercise: a gasket

> Draw a gasket in AutoCAD: a rounded plate, a bore, four holes copied from one, centre lines and dimensions, solved step by step. Practise it free online.

Draw this gasket, in millimetres: a plate 120 by 80 with its corners rounded to a radius of 10, a bore of 40 in the middle and four holes of 10, their centres 12 from the edges, with the bore's centre lines and the dimensions. Everything is typed: the first point of a command is where you type it, and each point after it is measured from the last one. The outline, the centre lines and the dimensions each go on their own layer.

- **Exercise:** Beginner · Mechanical · 2D
- **Commands:** [`RECTANG`](https://mellowcad.com/docs/commands/rectang.md), [`CIRCLE`](https://mellowcad.com/docs/commands/circle.md), [`COPY`](https://mellowcad.com/docs/commands/copy.md), [`LINE`](https://mellowcad.com/docs/commands/line.md), [`DIMLINEAR`](https://mellowcad.com/docs/commands/dimlinear.md), [`DIMDIAMETER`](https://mellowcad.com/docs/commands/dimdiameter.md)
- **In the editor:** [Open it with its drawing](/draw?drawing=gasket), dimensioned beside where you draw yours

## The drawing

The gasket, 120 by 80, dimensioned.

## Step by step

The engine draws each step and writes its history as you would type it: the prompts in AutoCAD 2027's order, with the same option letters. After a command's first point, a typed point is measured from the last one, as dynamic input measures it, and the history writes it with @; \# measures from the origin.

### 1. Draw the outline

Make Outline the current layer in the Layer control. [`RECTANG`](https://mellowcad.com/docs/commands/rectang.md) draws the plate in one go: choose `Fillet` and type the radius, `10`, then the first corner, `0,0`, and the other corner, `120,80`, measured from the first.

1. Draw the outline

```text
Command: RECTANG
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: F
Specify fillet radius for rectangles <0.00>: 10
Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 0,0
Specify other corner point or [Area/Dimensions/Rotation]: @120,80
```

### 2. Draw the bore

[`CIRCLE`](https://mellowcad.com/docs/commands/circle.md) at the plate's middle, `60,40`: choose `Diameter` and type `40`.

2. Draw the bore

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

### 3. Copy the holes

Draw one hole, a circle at `12,12` with a `Diameter` of `10`, then copy it with [`COPY`](https://mellowcad.com/docs/commands/copy.md): pick the circle, press Enter, take its centre, `12,12`, as the base point, and type where each copy goes from there: `96,0`, then `96,56`, then `0,56`. Enter ends the copies.

3. Copy the holes

```text
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 12,12
Specify radius of circle or [Diameter] <20.00>: D
Specify diameter of circle <40.00>: 10
Command: COPY
Select objects: 1 found
Select objects:
Current settings:  Copy mode = Multiple
Specify base point or [Displacement] <Displacement>: 12,12
Specify second point or <use first point as displacement>: @96,0
Specify second point or [Exit/Undo] <Exit>: @96,56
Specify second point or [Exit/Undo] <Exit>: @0,56
Specify second point or [Exit/Undo] <Exit>:
```

### 4. Draw the centre lines

Make Centre lines current. Two lines with [`LINE`](https://mellowcad.com/docs/commands/line.md) cross at the bore's centre and run 6 past its edge: from `60,14`, `0,52` up; from `34,40`, `52,0` across. Enter ends each one.

4. Draw the centre lines

```text
Command: LINE
Specify first point: 60,14
Specify next point or [Undo]: @0,52
Specify next point or [Undo]:
Command: LINE
Specify first point: 34,40
Specify next point or [Undo]: @52,0
Specify next point or [Undo]:
```

### 5. Dimension it

Make Dimensions current. [`DIMLINEAR`](https://mellowcad.com/docs/commands/dimlinear.md) takes two points and then where the dimension line goes: the length from `0,10` to `120,0` further on, placed below; the height on the right; the holes' spacing, 96 and 56. A point typed at its prompts touches no object, so each of these is created non-associative, and the command line says so. [`DIMDIAMETER`](https://mellowcad.com/docs/commands/dimdiameter.md) picks a circle and places its diameter: the bore's, then one hole's.

5. Dimension it

```text
Command: DIMLINEAR
Specify first extension line origin or <select object>: 0,10
Specify second extension line origin: @120,0
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 120
Command: DIMLINEAR
Specify first extension line origin or <select object>: 110,0
Specify second extension line origin: @0,80
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 80
Command: DIMLINEAR
Specify first extension line origin or <select object>: 12,68
Specify second extension line origin: @96,0
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 96
Command: DIMLINEAR
Specify first extension line origin or <select object>: 12,12
Specify second extension line origin: @0,56
Non-associative dimension created.
Specify dimension line location or [Text/Angle/Horizontal/Vertical/Rotated]:
Dimension text = 56
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 40
Specify dimension line location or [Text/Angle]:
Command: DIMDIAMETER
Select arc or circle:
Dimension text = 10
Specify dimension line location or [Text/Angle]:
```

## More exercises

- [AutoCAD exercise: an L bracket](https://mellowcad.com/docs/exercises/l-bracket.md): Beginner · Mechanical · 2D
- [AutoCAD exercise: stairs in plan](https://mellowcad.com/docs/exercises/stairs.md): Beginner · Architecture · 2D
- [AutoCAD 3D exercise: a mounting plate](https://mellowcad.com/docs/exercises/mounting-plate.md): Beginner · Mechanical · 3D solid
- [AutoCAD practice exercises](https://mellowcad.com/docs/exercises.md)
