# WEDGE in AutoCAD

> How AutoCAD's WEDGE (WE) draws a 3D solid wedge, prompt by prompt: two corners and a height, Center, Cube, Length and 2Point. Try it free in your browser.

WEDGE draws a 3D solid wedge: a box whose top slopes from one end down to the other. It asks what [`BOX`](https://mellowcad.com/docs/commands/box.md) asks: the first corner, the other corner, then the height. The tall end is at the first corner, and the slope falls along the UCS's X to the other corner's side; a corner at a smaller X turns it round. The height rises along the UCS's Z, a negative one goes down. The length, width and height are [`BOX`](https://mellowcad.com/docs/commands/box.md)'s defaults, which Enter takes. The wedge lies on the current layer, and Undo takes it back in one step.

[`LIST`](https://mellowcad.com/docs/commands/list.md) shows its position, length, width, height and rotation, and the Properties palette lets you type them. Its grips are [`BOX`](https://mellowcad.com/docs/commands/box.md)'s. It is a 3D solid for [`UNION`](https://mellowcad.com/docs/commands/union.md), [`SUBTRACT`](https://mellowcad.com/docs/commands/subtract.md) and the rest of MellowCAD's 3D, which is solids only and still partial; [`EXPLODE`](https://mellowcad.com/docs/commands/explode.md) turns it into a region per face.

- **Command:** `WEDGE`
- **Aliases:** `WE`
- **Panel:** [Draw](https://mellowcad.com/docs/commands.md#draw)
- **Try it:** [Open the editor](/draw), type `WE` and press Enter.

## At the command line

The engine draws it and writes its history as you would type it: the prompts in AutoCAD 2027's order, with the same option letters.

A wedge 60 by 40 by 25, from two corners and a height, its slope falling from the first corner's end, seen from the south-east in the Hidden visual style.

```text
Command: WEDGE
Specify first corner or [Center]: 0,0
Specify other corner or [Cube/Length]: @60,40
Specify height or [2Point]: 25
Command: -VIEW
Enter an option [Orthographic]: SEI
Command: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or [All/Extents/Previous/Scale/Window/Object]: 0.8x
```

## Options

### `Center` (`C`)

At the first prompt: asks for the centre, then a corner, `Cube` or `Length`. The wedge is centred on the point, in height too, its tall end opposite the corner given.

### `Cube` (`C`)

At the other corner: asks for a length and makes a wedge with every side that long. Unlike [`BOX`](https://mellowcad.com/docs/commands/box.md)'s, it runs along the UCS's X, backwards when negative.

### `Length` (`L`)

At the other corner: asks for the length, along the UCS's X, then the width, along its Y; a negative one runs backwards. A point gives only its distance, never its heading.

### `2Point` (`2P`)

At the height: asks for two points, and the height is the distance between them.

## What it does not do yet

[`BOX`](https://mellowcad.com/docs/commands/box.md)'s: Move, Rotate, Scale and Mirror from a hot grip, the 3D commands of its own, the dotted dimensions while you give the corner, and the visual styles [`VSCURRENT`](https://mellowcad.com/docs/commands/vscurrent.md) lacks. In plan, the Endpoint snap under the tall end finds the top's corner, where AutoCAD finds the base's.

[What it does and still lacks, in detail (in English)](https://github.com/ovelilla/mellowcad/blob/main/docs/coverage/draw.md#wedge--we--es-cuña--cu--pt-br-cunha--cn)

## Questions

### What is the shortcut for WEDGE in AutoCAD?

`WE`. Type it and press Enter or Space, then give the first corner, the other corner and the height: `0,0`, `60,40` and `25` draw the session's wedge.

### Which way does the wedge slope?

Down from the first corner's end, along the UCS's X. To turn it, give the other corner at a smaller X, which turns it 180°, or rotate it afterwards with [`ROTATE`](https://mellowcad.com/docs/commands/rotate.md).

### How do I draw a triangular prism?

A wedge is one: a right triangle at each end, swept along the width. For any other triangle, draw it closed with [`PLINE`](https://mellowcad.com/docs/commands/pline.md) and [`EXTRUDE`](https://mellowcad.com/docs/commands/extrude.md) it.

### How do I draw a wedge from its centre?

Choose `Center` and give the centre point, then a corner, `Cube` or `Length`: the wedge is centred on the point, in height too.

## Related commands

- [BOX in AutoCAD](https://mellowcad.com/docs/commands/box.md)
- [PYRAMID in AutoCAD](https://mellowcad.com/docs/commands/pyramid.md)
- [EXTRUDE in AutoCAD](https://mellowcad.com/docs/commands/extrude.md)
- [UNION in AutoCAD](https://mellowcad.com/docs/commands/union.md)
