add_room
Add a room polygon to a Sweet Home 3D project file using corner points in centimeters, with an optional room name and overlap control.
Instructions
Add a room polygon to a .sh3d project. Lengths are in centimetres and rotations in degrees. The plan coordinate system uses y increasing downward. This tool does not infer walls, repeat the closing point, or auto-split overlapping rooms. Example: add_room(project_path='house.sh3d', points=[(0,0),(500,0),(500,400),(0,400)], name='Kitchen')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| points | Yes | ||
| area_visible | No | ||
| project_path | Yes | ||
| allow_overlap | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||