curl --request POST \
--url https://api.eddy.engineer/v1/bim.product.bind \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"element": 123,
"key": "<string>",
"mapping": "<string>",
"max_shift_mm": 123,
"size_tolerance_mm": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.product.bind"
payload = {
"element": 123,
"key": "<string>",
"mapping": "<string>",
"max_shift_mm": 123,
"size_tolerance_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({
element: 123,
key: '<string>',
mapping: '<string>',
max_shift_mm: 123,
size_tolerance_mm: 123
})
};
fetch('https://api.eddy.engineer/v1/bim.product.bind', 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.product.bind",
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([
'element' => 123,
'key' => '<string>',
'mapping' => '<string>',
'max_shift_mm' => 123,
'size_tolerance_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.product.bind"
payload := strings.NewReader("{\n \"element\": 123,\n \"key\": \"<string>\",\n \"mapping\": \"<string>\",\n \"max_shift_mm\": 123,\n \"size_tolerance_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.product.bind")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"element\": 123,\n \"key\": \"<string>\",\n \"mapping\": \"<string>\",\n \"max_shift_mm\": 123,\n \"size_tolerance_mm\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.product.bind")
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 \"element\": 123,\n \"key\": \"<string>\",\n \"mapping\": \"<string>\",\n \"max_shift_mm\": 123,\n \"size_tolerance_mm\": 123\n}"
response = http.request(request)
puts response.read_body{
"after": {},
"before": {},
"commands": [
{}
],
"element": 123,
"family": "<string>",
"finding_counts": {},
"findings": [
{}
],
"key": "<string>",
"matches": [
{}
],
"ports_agree": true,
"rerun": [
"<string>"
],
"schema": "<string>"
}The plan that puts a confirmed product in place of a generic component: the engine's commands, the ports matched, what does not connect named (MEP27)
Worked out by a BIM worker on a copy of the document; nothing is stored. The product stands where the generic component stood (its place, level, turn and mirroring) and its ports are where its own geometry puts them. commands are the engine’s own, to run in order through /v1/bim.run, each an undoable step: family (the product’s, in the generic part’s category, only when the project lacks it), parameter (MEP6’s Equipment, only when absent), modify of the component to the product’s family with Equipment set to the record’s key, then a modify of each run end moved to the product’s port. The generic part’s connectors are paired with the product’s ports (same kind, domain and flow that agree, size within size_tolerance_mm, default 0.5 mm); a run end follows its port when it is within max_shift_mm (default 300 mm). Findings: PRODUCT_CONNECTION_LOST (a connection no port answers), PRODUCT_PORT_NOT_CONNECTED (a port answers but what met the connector cannot follow it, or does not meet it after the commands), PRODUCT_PORT_OPEN (a port taking no connector’s place), PRODUCT_CONNECTOR_NOT_CARRIED (a power, data or earthing connector of the generic part, which a product file’s pipe and duct ports cannot carry). before and after are the graph round the part; rerun names the results that read it (the graph, MEP6’s placements, the checker, and water, drainage or air where its ports carry what they read), to run again once the commands are run. Refusals by name: PRODUCT_MAPPING_UNKNOWN (404, a mapping your organisation did not confirm), EQUIPMENT_UNKNOWN, PRODUCT_TARGET, PRODUCT_ALREADY_BOUND, PRODUCT_FAMILY_NAME_TAKEN, PRODUCT_EQUIPMENT_PARAMETER, PRODUCT_BIND_SETTINGS, PRODUCT_COMMAND_REFUSED, the graph’s SYSTEMS_*.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.product.bind \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"element": 123,
"key": "<string>",
"mapping": "<string>",
"max_shift_mm": 123,
"size_tolerance_mm": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.product.bind"
payload = {
"element": 123,
"key": "<string>",
"mapping": "<string>",
"max_shift_mm": 123,
"size_tolerance_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({
element: 123,
key: '<string>',
mapping: '<string>',
max_shift_mm: 123,
size_tolerance_mm: 123
})
};
fetch('https://api.eddy.engineer/v1/bim.product.bind', 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.product.bind",
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([
'element' => 123,
'key' => '<string>',
'mapping' => '<string>',
'max_shift_mm' => 123,
'size_tolerance_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.product.bind"
payload := strings.NewReader("{\n \"element\": 123,\n \"key\": \"<string>\",\n \"mapping\": \"<string>\",\n \"max_shift_mm\": 123,\n \"size_tolerance_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.product.bind")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"element\": 123,\n \"key\": \"<string>\",\n \"mapping\": \"<string>\",\n \"max_shift_mm\": 123,\n \"size_tolerance_mm\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.product.bind")
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 \"element\": 123,\n \"key\": \"<string>\",\n \"mapping\": \"<string>\",\n \"max_shift_mm\": 123,\n \"size_tolerance_mm\": 123\n}"
response = http.request(request)
puts response.read_body{
"after": {},
"before": {},
"commands": [
{}
],
"element": 123,
"family": "<string>",
"finding_counts": {},
"findings": [
{}
],
"key": "<string>",
"matches": [
{}
],
"ports_agree": true,
"rerun": [
"<string>"
],
"schema": "<string>"
}