add_dimension
Dimension the distance between two points in AutoCAD drawings, using aligned, linear, horizontal, or vertical styles. Specify points and a dimension-line location to annotate measurements.
Instructions
Dimension the distance between p1 and p2 (aligned, or linear/horizontal/vertical).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | Yes | [x, y] or [x, y, z] | |
| p2 | Yes | [x, y] or [x, y, z] | |
| kind | No | aligned | |
| color | No | ACI 0-256 or name (red, yellow, green, cyan, blue, magenta, white, bylayer) | |
| layer | No | Target layer (created if missing). Default: current layer. | |
| location | Yes | A point the dimension line passes through | |
| rotation | No | Dimension-line angle for kind=linear (degrees) | |
| text_height | No | Dimension text/arrow size in drawing units (e.g. 250 for a mm floor plan) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||