Check any model against released standards rule packs (standalone, outside the product pipeline)
curl --request POST \
--url https://api.eddy.engineer/v1/standards.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": {},
"dfm": true,
"measures": "<array>",
"packs": [
"<string>"
],
"previous": "<string>",
"previous_verdicts": "<array>",
"segments": 123,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/standards.check"
payload = {
"model": {},
"dfm": True,
"measures": "<array>",
"packs": ["<string>"],
"previous": "<string>",
"previous_verdicts": "<array>",
"segments": 123,
"store": True
}
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({
model: {},
dfm: true,
measures: '<array>',
packs: ['<string>'],
previous: '<string>',
previous_verdicts: '<array>',
segments: 123,
store: true
})
};
fetch('https://api.eddy.engineer/v1/standards.check', 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/standards.check",
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([
'model' => [
],
'dfm' => true,
'measures' => '<array>',
'packs' => [
'<string>'
],
'previous' => '<string>',
'previous_verdicts' => '<array>',
'segments' => 123,
'store' => true
]),
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/standards.check"
payload := strings.NewReader("{\n \"model\": {},\n \"dfm\": true,\n \"measures\": \"<array>\",\n \"packs\": [\n \"<string>\"\n ],\n \"previous\": \"<string>\",\n \"previous_verdicts\": \"<array>\",\n \"segments\": 123,\n \"store\": true\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/standards.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": {},\n \"dfm\": true,\n \"measures\": \"<array>\",\n \"packs\": [\n \"<string>\"\n ],\n \"previous\": \"<string>\",\n \"previous_verdicts\": \"<array>\",\n \"segments\": 123,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/standards.check")
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 \"model\": {},\n \"dfm\": true,\n \"measures\": \"<array>\",\n \"packs\": [\n \"<string>\"\n ],\n \"previous\": \"<string>\",\n \"previous_verdicts\": \"<array>\",\n \"segments\": 123,\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"absences": "<array>",
"check_key": "<string>",
"clean": true,
"counts": {},
"counts_release": {},
"diff": "<array>",
"measures": {},
"stored": true,
"timings": {},
"verdicts": "<array>"
}PLM
Check any model against released standards rule packs (standalone, outside the product pipeline)
`packs` names RELEASED pack items (pack:<id>; an unreleased one is RULEPACK_UNRELEASED). `model` is exactly one of `part` {id, recipe, material, units}, `parts` [...], `assembly` (an ss_cad assembly; `materials` by component id, `units`) or `board` (MODEL_BOARD_NOT_YET); recipe lengths are in `units` (mm | cm | m | in, default m) and every measure is SI; `result_key` names a stored structural solve whose metrics become result:<metric> and material:<part>.stress_ratio; `dfm` runs the machining planner. The engine computes the measures the packs need (hole diameters and annotated bands, annotated dims, label counts, material properties from the library with the studio's short names resolved, pair clearances when a rule templates a pair), evaluates every rule and returns `verdicts` — each with a stable `id` (pack:<id>/<rule>[@<subjects>]), the {standard, edition, clause} citation, kind, key, subjects, measure, cmp, threshold, unit, verdict (pass | fail | review | unevaluable), margin (pass / fail), reason (the review text or the missing measure, named), basis (result | preview) and basis_keys — plus counts, counts_release (result-basis only; preview-basis verdicts counted as `preview`), clean (the release scope: true only when no fail / review / unevaluable / preview verdict exists), measures, absences (what the engine cannot supply for this model, named) and timings {measure_ms, evaluate_ms, total_ms, cache {packs_hit, subjects_hit, subjects_measured, pairs_hit, pairs_measured}}. Never drops a rule: a rule whose bindings expand to no subject is one unevaluable verdict. Live use: packs are compiled once and cached by content key, per-subject measures by the geometry hash (canonical recipe + units + material), pair clearances by both hashes and poses; `measures: [{key, value, unit?, kind: preview | result, source?}]` merge over the engine's map (a verdict that read a preview is basis preview); `store: false` skips the artifact write (standards_check); `previous_verdicts` (the client's last array) or `previous` (a stored check_key) returns `diff: [{id, from, to, margin_delta}]`. MEP7, buildings: `model.building` {key, sources?, state?, on?} checks a BIM document. Its measures come through the /v1/bim.measures seam: the model's `bim:` keys and the system graph's `mep:` keys (`mep:system.<S>.groups | findings | terminals | runs | length | complete | paths`, `mep:system.<S>.path.length | fittings | rise | velocity.max` from the `sources` element ids to every terminal), and `{part}` binds to the building's systems (names percent-encoded; runs with no name and lone connectors are `(unnamed)`). The rule kinds `path_limit` (`system.{part}.path.<q>.max`) and `system_limit` (`system.{part}.<m>`) read them, report_kind `mep`. Packs are keyed by edition and state: a pack's `in_force` [{state, from?, until?}] must cover `state` on `on` (YYYY-MM-DD, default today UTC) or it is refused by name (RULEPACK_NOT_IN_FORCE, BUILDING_STATE_REQUIRED); with no `packs` and a `state`, every pack the caller's own organisation (the shared namespace for the bootstrap organisation) adopted that is in force there is taken, one edition per standard (RULEPACK_EDITION_AMBIGUOUS, RULEPACK_NONE_IN_FORCE, RULEPACK_TOO_MANY_IN_FORCE past 64); an adopted revision in force whose item's head moved on is refused by name until the head is adopted (RULEPACK_ADOPTION_STALE). A source feeds a system only through a run or a connector that does not only take flow in; a component whose connectors don't work out, in no group, makes the `(unnamed)` system incomplete. Given `measures` may not set a building's own `mep:` or `bim:` keys (BUILDING_MEASURE_GIVEN). A check that would make more than 20,000 verdicts (rules times their bindings) is refused before evaluation (CHECK_TOO_LARGE). Dates are calendar dates (no 31 February). The response carries `building` {key, sources, state, on, systems (each with its worst path per quantity), gaps, notes}. MEP8, slots: a rule with `slot` {table, key} and a check with no value is a template; its limit is filled from the caller's own organisation's adopted value table (item `values:<table>`, or `values:~<org>:<table>` in an organisation of its own; /v1/mep.values.*) and the verdict carries `values` {table, item_id, rev, table_key, key, value, unit, clause, standard, edition, provenance, licence}; unfilled it is unevaluable. Every unevaluable verdict carries `gaps` [{measure, code?, why, elements?}], never empty: the graph's (SYSTEM_INCOMPLETE, NO_SOURCE, NO_TERMINAL, TERMINAL_UNREACHABLE, DESIGN_FLOW_MISSING, SYSTEMS_OVER_BUDGET, SYSTEMS_TOO_LARGE, SYSTEMS_TOO_MANY), the tables' (VALUE_TABLE_MISSING, VALUE_TABLE_NOT_ADOPTED, VALUE_TABLE_UNREADABLE, VALUE_TABLE_NOT_IN_FORCE, VALUE_ENTRY_MISSING, VALUE_ENTRY_EMPTY, VALUE_UNIT_MISMATCH), else one gap with the verdict's reason: MEASURE_MISSING when its measure is absent, UNEVALUABLE otherwise. A check that read a table lists it in `values` and its licence's attribution in `attribution`.
POST
/
v1
/
standards.check
Check any model against released standards rule packs (standalone, outside the product pipeline)
curl --request POST \
--url https://api.eddy.engineer/v1/standards.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": {},
"dfm": true,
"measures": "<array>",
"packs": [
"<string>"
],
"previous": "<string>",
"previous_verdicts": "<array>",
"segments": 123,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/standards.check"
payload = {
"model": {},
"dfm": True,
"measures": "<array>",
"packs": ["<string>"],
"previous": "<string>",
"previous_verdicts": "<array>",
"segments": 123,
"store": True
}
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({
model: {},
dfm: true,
measures: '<array>',
packs: ['<string>'],
previous: '<string>',
previous_verdicts: '<array>',
segments: 123,
store: true
})
};
fetch('https://api.eddy.engineer/v1/standards.check', 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/standards.check",
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([
'model' => [
],
'dfm' => true,
'measures' => '<array>',
'packs' => [
'<string>'
],
'previous' => '<string>',
'previous_verdicts' => '<array>',
'segments' => 123,
'store' => true
]),
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/standards.check"
payload := strings.NewReader("{\n \"model\": {},\n \"dfm\": true,\n \"measures\": \"<array>\",\n \"packs\": [\n \"<string>\"\n ],\n \"previous\": \"<string>\",\n \"previous_verdicts\": \"<array>\",\n \"segments\": 123,\n \"store\": true\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/standards.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": {},\n \"dfm\": true,\n \"measures\": \"<array>\",\n \"packs\": [\n \"<string>\"\n ],\n \"previous\": \"<string>\",\n \"previous_verdicts\": \"<array>\",\n \"segments\": 123,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/standards.check")
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 \"model\": {},\n \"dfm\": true,\n \"measures\": \"<array>\",\n \"packs\": [\n \"<string>\"\n ],\n \"previous\": \"<string>\",\n \"previous_verdicts\": \"<array>\",\n \"segments\": 123,\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"absences": "<array>",
"check_key": "<string>",
"clean": true,
"counts": {},
"counts_release": {},
"diff": "<array>",
"measures": {},
"stored": true,
"timings": {},
"verdicts": "<array>"
}Body
application/json