curl --request POST \
--url https://api.eddy.engineer/v1/bim.mep.rooms \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"ceiling_mm": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.mep.rooms"
payload = {
"key": "<string>",
"ceiling_mm": 123
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: '<string>', ceiling_mm: 123})
};
fetch('https://api.eddy.engineer/v1/bim.mep.rooms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/bim.mep.rooms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'ceiling_mm' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/bim.mep.rooms"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"ceiling_mm\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/bim.mep.rooms")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"ceiling_mm\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.mep.rooms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"ceiling_mm\": 123\n}"
response = http.request(request)
puts response.read_body{}An architect's model's levels and rooms as the layout reads them, and every room it could not read, with why (`ss.mep.rooms/1`, MEP33b)
Read before laying services into an imported building (bim_mep_layout with existing). Storeys are the document’s levels by elevation, numbered from 1, each with its height to the level above and its usual ceiling height (of the ceilings drawn on it, the height over the most ceiling area, else ceiling_mm as entered here). rooms: each room read, with name (what a brief places by: the room’s own name, or with its number where two on a storey share it), number, id, area_m2 (the engine’s own boundary), rect (the axis-aligned rectangle the layout places into: the room when it is one, else the largest one inside it, at least 1000 mm each way) and coverage (its share of the room), outline and holes, ceiling_mm (the ceiling drawn over most of it, else its level’s usual, as ceiling_from says) and ceiling_space_mm (above that ceiling to a 200 mm slab under the level above; the air goes only where it is at least 725 mm). not_read: every room that can’t be used, with code and why: ROOM_NOT_ENCLOSED, ROOM_SHARES_SPACE, ROOM_NO_LEVEL_ABOVE, ROOM_NO_CEILING_HEIGHT, ROOM_NO_CEILING_SPACE (its ceiling leaves no ceiling space under the level above: an open-to-above ceiling, say), ROOM_SHAPE, ROOM_NAME, ROOM_NAME_TWICE, ROOM_LIMIT (the first 400 rooms are read). A storey’s walls_to_slab (MEP32b), where it has any: of the walls crossing its ceiling space (of), those running from under its usual ceiling to within 400 mm of the level above (count), and the first 20 of their types’ names (types). shafts: the document’s rectangular shafts. ceilings_too_high: each room whose ceiling leaves no ceiling space or less than the air needs, with room_id, ceiling_ids (the ceilings drawn over it), ceiling_mm, ceiling_space_mm, the level’s usual_ceiling_mm and the space it would leave (usual_ceiling_space_mm), needs_mm (725), gets_no_services and effect: what a proposal to lower the ceiling reads. Nothing is stored or changed. Refused: ROOMS_REQUEST (400); the document’s own refusals as bim.elements gives them. questions (R2 of the rules plan): where walls run to the slab on at least half of a storey’s ceiling-space crossings, whether to cross the partitions (WALLS_CROSS, ss.question/1: interior changes the model, so it is approved with the plan; none). Absent where nothing is asked.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.mep.rooms \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"ceiling_mm": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.mep.rooms"
payload = {
"key": "<string>",
"ceiling_mm": 123
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: '<string>', ceiling_mm: 123})
};
fetch('https://api.eddy.engineer/v1/bim.mep.rooms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/bim.mep.rooms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'ceiling_mm' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/bim.mep.rooms"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"ceiling_mm\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/bim.mep.rooms")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"ceiling_mm\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.mep.rooms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"ceiling_mm\": 123\n}"
response = http.request(request)
puts response.read_body{}Body
Response
The reading (ss.mep.rooms/1): storeys, rooms, not_read, shafts, plate, notes, key
The response is of type object.