Make floor plan
make_floor_planUse this when the user wants a floor plan, room layout or apartment plan drawn to scale from room sizes, for example "draw a floor plan: living 5x4 m, kitchen 3x4 m next to it" or "plan of my house in feet". Takes rooms as rectangles (width east-west, length north-south) in metres or feet and inches, placed by x/y or right_of/below/left_of/above another room, plus optional doors and windows by wall and offset, a scale (auto, 1:50, 1:100, 1/4in=1ft) and a page size. Returns each room area, the total area, an interactive plan, and SVG, PDF and CSV downloads. Refuses overlapping rooms and openings past a wall end, naming them. Does not draw curved walls, stairs, furniture or wall thickness, and does not read images or files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doors | No | Doors, up to 60, e.g. [{"room":"Living","wall":"south","offset":1,"width":0.9}]. Drawn as a gap with a swing arc. | |
| rooms | Yes | Rooms as rectangles, up to 40. A room with no position goes to the right of the previous room. Example: [{"name":"Living","width":5,"length":4},{"name":"Kitchen","width":3,"length":4,"right_of":"Living"}]. | |
| scale | No | auto (default: the largest standard scale that fits one page), a ratio like "1:50" or "1:100", or an architect scale like "1/4in=1ft" or "1/8in=1ft". | |
| title | No | Plan title, e.g. "Ground floor". Up to 80 characters. | |
| units | No | Unit for plain numbers. m (default), cm or mm: a metric plan, sizes like 3.5, "350 cm" or "3500 mm"; ft or in: a feet-and-inches plan, sizes like 12'6", "12 ft 6 in", "12.5 ft" or "150 in". With cm, a plain 90 is 90 cm; with in, a plain 30 is 30 inches. | |
| windows | No | Windows, up to 60, e.g. [{"room":"Kitchen","wall":"east","offset":1,"width":1.2}]. | |
| page_size | No | PDF and SVG paper: auto (default: A4 for metres, Letter for feet), a4, a3, letter or tabloid. Orientation is chosen to fit. | |
| north_arrow | No | Draw a north arrow pointing up (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| doors | Yes | ||
| rooms | Yes | ||
| scale | Yes | ||
| title | Yes | ||
| units | Yes | ||
| checks | Yes | ||
| windows | Yes | ||
| warnings | Yes | ||
| area_unit | Yes | ||
| downloads | Yes | ||
| plan_size | Yes | ||
| room_count | Yes | ||
| total_area | Yes | ||
| label_check | Yes | ||
| scale_check | Yes | ||
| preview_count | No | ||
| total_area_text | Yes |