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')
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>",
"points": "<points>"
},
"name": "add_room"
}
}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 | |||