add_dimension
Add dimension lines to Sweet Home 3D .sh3d projects using start/end coordinates in centimetres, offset, and label angle to annotate measurements without opening the app.
Instructions
Add a dimension line to a .sh3d project. Lengths are in centimetres and rotations in degrees. The plan coordinate system uses y increasing downward. This tool does not snap to existing geometry or infer offsets from nearby walls. Example: add_dimension(project_path='house.sh3d', x1=0, y1=0, x2=500, y2=0, offset=20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| offset | No | ||
| label_angle | No | ||
| project_path | Yes | ||
| visible_in_3d | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||