add_dimension
Add linear or aligned dimensions between two points to annotate distances in AutoCAD drawings. Specify extension line origins and dimension line placement for precise measurement.
Instructions
Add a linear or aligned dimension between point1 and point2.
Args: point1: First extension line origin [x, y]. point2: Second extension line origin [x, y]. dim_line_point: Point specifying the dimension line location [x, y]. dim_type: 'aligned' or 'linear'. layer: Optional layer name for the dimension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| point1 | Yes | ||
| point2 | Yes | ||
| dim_type | No | aligned | |
| dim_line_point | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |