curl --request POST \
--url https://api.eddy.engineer/v1/dfm.select \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"candidates": [
{
"material": "<string>",
"process": "<string>",
"profile": "<string>"
}
],
"material": "<string>",
"materials": {},
"part": "<string>",
"processes": [
"<string>"
],
"quantities": [
2
],
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.select"
payload = {
"subject": {},
"candidates": [
{
"material": "<string>",
"process": "<string>",
"profile": "<string>"
}
],
"material": "<string>",
"materials": {},
"part": "<string>",
"processes": ["<string>"],
"quantities": [2],
"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: {},
candidates: [{material: '<string>', process: '<string>', profile: '<string>'}],
material: '<string>',
materials: {},
part: '<string>',
processes: ['<string>'],
quantities: [2],
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.select', 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.select",
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' => [
],
'candidates' => [
[
'material' => '<string>',
'process' => '<string>',
'profile' => '<string>'
]
],
'material' => '<string>',
'materials' => [
],
'part' => '<string>',
'processes' => [
'<string>'
],
'quantities' => [
2
],
'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.select"
payload := strings.NewReader("{\n \"subject\": {},\n \"candidates\": [\n {\n \"material\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\"\n }\n ],\n \"material\": \"<string>\",\n \"materials\": {},\n \"part\": \"<string>\",\n \"processes\": [\n \"<string>\"\n ],\n \"quantities\": [\n 2\n ],\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.select")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"candidates\": [\n {\n \"material\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\"\n }\n ],\n \"material\": \"<string>\",\n \"materials\": {},\n \"part\": \"<string>\",\n \"processes\": [\n \"<string>\"\n ],\n \"quantities\": [\n 2\n ],\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.select")
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 \"candidates\": [\n {\n \"material\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\"\n }\n ],\n \"material\": \"<string>\",\n \"materials\": {},\n \"part\": \"<string>\",\n \"processes\": [\n \"<string>\"\n ],\n \"quantities\": [\n 2\n ],\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>"
}
}Pick the process a part should be made by: every candidate checked and costed, ranked per quantity (ss.dfm.select/1)
MF15’s process selection. Each candidate process (a profile: process, material, shop) is costed (MF14, the drivers measured once and priced exactly at every quantity) and checked (dfm.check, whatever the process’s rule units return today). A finding of severity error makes a candidate infeasible as designed: still costed and ranked, flagged, with the findings that block it (blocking). A candidate whose rules are not built yet (check answers DFM_NOT_BUILT, or every one of its own rules is pending) is unverified: costed and ranked with the unit named, and becomes feasible or infeasible when that unit lands. Until MF8 evaluates IM5, moulding is screened on MF6’s undercut classes: an undercut nothing releases blocks it. A candidate the cost engine refuses (no cost model, an unpriced material, a part a sheet process cannot read) or whose check refuses otherwise is listed in skipped with the reason. Without candidates or processes, every process on its seeded shop is a candidate (but welding and drilling, which do not make a part), in material or the materials named per process or family, and a process that does not make parts of that material is skipped. The answer ranks the candidates by cost per part (before markup) at each quantity, gives the break-even quantity of every pair that changes order between two neighbouring quantities, and the cheapest candidate that is not infeasible per quantity band. Every seeded rate is assumed: the ranking is an order of magnitude, not a quote. Deterministic and content-addressed (select_key).
curl --request POST \
--url https://api.eddy.engineer/v1/dfm.select \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"candidates": [
{
"material": "<string>",
"process": "<string>",
"profile": "<string>"
}
],
"material": "<string>",
"materials": {},
"part": "<string>",
"processes": [
"<string>"
],
"quantities": [
2
],
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.select"
payload = {
"subject": {},
"candidates": [
{
"material": "<string>",
"process": "<string>",
"profile": "<string>"
}
],
"material": "<string>",
"materials": {},
"part": "<string>",
"processes": ["<string>"],
"quantities": [2],
"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: {},
candidates: [{material: '<string>', process: '<string>', profile: '<string>'}],
material: '<string>',
materials: {},
part: '<string>',
processes: ['<string>'],
quantities: [2],
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.select', 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.select",
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' => [
],
'candidates' => [
[
'material' => '<string>',
'process' => '<string>',
'profile' => '<string>'
]
],
'material' => '<string>',
'materials' => [
],
'part' => '<string>',
'processes' => [
'<string>'
],
'quantities' => [
2
],
'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.select"
payload := strings.NewReader("{\n \"subject\": {},\n \"candidates\": [\n {\n \"material\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\"\n }\n ],\n \"material\": \"<string>\",\n \"materials\": {},\n \"part\": \"<string>\",\n \"processes\": [\n \"<string>\"\n ],\n \"quantities\": [\n 2\n ],\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.select")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"candidates\": [\n {\n \"material\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\"\n }\n ],\n \"material\": \"<string>\",\n \"materials\": {},\n \"part\": \"<string>\",\n \"processes\": [\n \"<string>\"\n ],\n \"quantities\": [\n 2\n ],\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.select")
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 \"candidates\": [\n {\n \"material\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\"\n }\n ],\n \"material\": \"<string>\",\n \"materials\": {},\n \"part\": \"<string>\",\n \"processes\": [\n \"<string>\"\n ],\n \"quantities\": [\n 2\n ],\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
Process ids, each on its seeded shop (milling_3ax | milling_3plus2 | milling_5ax | turning | turn_mill | drilling | injection_moulding | die_casting | sand_casting | investment_casting | forging | sheet_laser_brake | sheet_punch_brake | fdm | sla | sls | lpbf | mjf | welding | tube_bending).
Response
select_key, stored, report (ss.dfm.select/1: kind, subject {part, kind, key}, quantities[], currency, candidates[] {id, process, shop, material, profile, feasibility (feasible | unverified | infeasible), check {report?, not_built? {unit, what}, findings {error, warning, advice}, pending}, blocking[] (findings), cost {estimate, currency, confidence, material, processing, setup_per_lot, tooling, tool_life?, cycle_time_s}, curve[] {quantity, per_part, price}, notes[]}, skipped[] {process, shop, material, code, unit?, stage (candidates | cost | check), reason}, rankings[] {quantity, order[] {rank, id, process, per_part, price, feasibility}, cheapest?}, break_evens[] {below, above, quantity, between [lo, hi], per_part_below, per_part_above}, bands[] {from, to, id, process, feasibility}, notes[])