# Add Dimension (`geometry.addDimension`)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/commands/geometry-addDimension/)

**Menu:** none (Quick Open, the CLI, Python and MCP) · **Runs as:** at once

> Preview: turn on Preview features in Edit › Preferences › Simulation, or run `preview.set {"enabled":true}`. Its replies carry `preview: true` and a note.

## What it does

Shows the distance from point a to point b on the drawing; geometry.setDimension edits it. One undo step.

## Parameters

- `a`: int (a point index)
- `b`: int (another point index)

## Reply

- dimension (its index)
- value (m)
- ...summary
