curl --request POST \
--url https://api.eddy.engineer/v1/dfm.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"project": "<string>",
"quantity": 123,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.check"
payload = {
"subject": {},
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"project": "<string>",
"quantity": 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({
subject: {},
material: '<string>',
part: '<string>',
pmi: {},
process: '<string>',
profile: '<string>',
project: '<string>',
quantity: 123,
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.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/dfm.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([
'subject' => [
],
'material' => '<string>',
'part' => '<string>',
'pmi' => [
],
'process' => '<string>',
'profile' => '<string>',
'project' => '<string>',
'quantity' => 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/dfm.check"
payload := strings.NewReader("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"project\": \"<string>\",\n \"quantity\": 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/dfm.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"project\": \"<string>\",\n \"quantity\": 123,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.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 \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"project\": \"<string>\",\n \"quantity\": 123,\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Check a part's manufacturability against a process and a shop (the DfM report)
The DfM checker (MF track): a part, an assembly, or an imported STEP body checked against a profile (process, material, quantity and the shop that will make it), answering the ss.dfm.report/1: every finding with the rule, the faces or parts it is about, what was measured against which limit, the limit’s source and confidence; the geom:<part>.dfm.* measures a dfm rule pack reads; and, for every catalogue rule that applies but is not evaluated yet, the unit that builds it (pending) — never a silent pass. subject is exactly one of {recipe, units?} (a part recipe; units mm | cm | m | in, default m — the checker reads lengths in metres), {brep_blob} (an uploaded STEP file read as a B-rep in metres), {step_blob} (the STEP file’s bytes as they are) or an assembly subject {assembly, options?, request?, plan?, dfa?, mating?, units?} (the assembly rules AS1-AS8: tool access, head clearance, thread engagement, hole alignment, interference, DFA index, fastener count, near-symmetry). profile is a seeded shop id (GET /v1/dfm.profiles), an inline shop, or a whole ss.dfm.profile/1; process picks the process on a shop (required when the shop runs several) or overrides a profile’s. pmi attaches an ss.pmi/1 set (tolerances and finishes graded against ISO 286 and the shop’s capability). Built today: the machining seed and the tolerance rules TF1-TF3 on recipes for the milling and drilling processes, and the assembly rules; other processes, and machining on a part with no recipe, answer 422 DFM_NOT_BUILT whose message ends with the unit that builds them. Deterministic: the report is content-addressed (report_key, the b3 id of its canonical bytes), stored as a blob unless store: false, and the same inputs are answered from memory (cached).
curl --request POST \
--url https://api.eddy.engineer/v1/dfm.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"project": "<string>",
"quantity": 123,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.check"
payload = {
"subject": {},
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"project": "<string>",
"quantity": 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({
subject: {},
material: '<string>',
part: '<string>',
pmi: {},
process: '<string>',
profile: '<string>',
project: '<string>',
quantity: 123,
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.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/dfm.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([
'subject' => [
],
'material' => '<string>',
'part' => '<string>',
'pmi' => [
],
'process' => '<string>',
'profile' => '<string>',
'project' => '<string>',
'quantity' => 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/dfm.check"
payload := strings.NewReader("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"project\": \"<string>\",\n \"quantity\": 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/dfm.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"project\": \"<string>\",\n \"quantity\": 123,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.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 \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"project\": \"<string>\",\n \"quantity\": 123,\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
report_key, stored, cached, report (ss.dfm.report/1: kind, subject {part, kind (recipe | brep | step | assembly), key}, process, profile (the profile's key), shop, catalogue (the catalogue's key), findings[] {rule, process, severity (error | warning | advice), entities[] {kind (face | edge | part), index, name?, stable?}, witness[[x,y,z]], measured, limit, limit_hi?, unit, comparator, source, confidence, cost_delta?, fix?, note?}, measures {geom:.dfm..: value (SI)}, summaries {setups?, pull?, flat_pattern?, build?}, pending[] {rule, unit} (rules that apply but are not evaluated yet, with the MF unit that builds them), notes[])