# Set Dimension (`geometry.setDimension`)

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

**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

Sets a dimension: its point b moves along the line from point a to the new distance, and the edges at b follow. One undo step.

## Parameters

- `index`: int (the dimension)
- `value`: number (m)

## Reply

- dimension
- value
- ...summary
