curl --request POST \
--url https://api.eddy.engineer/v1/sequence.dfa \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"dfa": {},
"options": {},
"oracles": true,
"plan": {},
"segments": 123,
"units": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.dfa"
payload = {
"assembly": {},
"dfa": {},
"options": {},
"oracles": True,
"plan": {},
"segments": 123,
"units": "<string>"
}
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({
assembly: {},
dfa: {},
options: {},
oracles: true,
plan: {},
segments: 123,
units: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/sequence.dfa', 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/sequence.dfa",
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([
'assembly' => [
],
'dfa' => [
],
'options' => [
],
'oracles' => true,
'plan' => [
],
'segments' => 123,
'units' => '<string>'
]),
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/sequence.dfa"
payload := strings.NewReader("{\n \"assembly\": {},\n \"dfa\": {},\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"segments\": 123,\n \"units\": \"<string>\"\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/sequence.dfa")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"dfa\": {},\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"segments\": 123,\n \"units\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.dfa")
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 \"assembly\": {},\n \"dfa\": {},\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"segments\": 123,\n \"units\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Design-for-assembly score of the planned build (Boothroyd-Dewhurst assembly time and DFA index)
Plans the build as sequence.plan does, then scores every part on the Boothroyd-Dewhurst manual handling and insertion charts: seconds per part, the theoretical minimum part count and the DFA index, every cell cited. DFA scoring: the Boothroyd-Dewhurst manual-assembly worksheet of the planned build (the plan as sequence.plan makes it). Per part: the handling code and seconds (Fig. 3.14: alpha / beta symmetry from a vertex-set test of the part about its insertion axis, size and thickness from the posed bounding box or the radius of a body of revolution, handling difficulties and two-hand parts) and the insertion code and seconds (Fig. 3.15: obstructed access from a path step, restricted vision from how far the trailing end sits below the neighbours’ rim, holding down from the engine’s held parts, self-location from a shaft-in-bore / socket / mate / pocket contact, screw tightening for detected fasteners), every cell with its chart source and a confidence (published_example when a published worksheet pins it, transcribed otherwise), the derivation of every feature in sources. The theoretical minimum part count from the three criteria (moves relative to the others: a mate leaving a degree of freedom; a different material: override only; separate to allow assembly: the base part, a serviceable constraint) with fasteners never counted, the totals and the index 3 * N_min / T. What geometry cannot know (tangling, a press fit, a spring under a cover, the material) comes from dfa overrides; a part whose features reach no cell of the chart is 400 DFA_UNCLASSIFIED naming the override that settles it. Deterministic.
curl --request POST \
--url https://api.eddy.engineer/v1/sequence.dfa \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"dfa": {},
"options": {},
"oracles": true,
"plan": {},
"segments": 123,
"units": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.dfa"
payload = {
"assembly": {},
"dfa": {},
"options": {},
"oracles": True,
"plan": {},
"segments": 123,
"units": "<string>"
}
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({
assembly: {},
dfa: {},
options: {},
oracles: true,
plan: {},
segments: 123,
units: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/sequence.dfa', 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/sequence.dfa",
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([
'assembly' => [
],
'dfa' => [
],
'options' => [
],
'oracles' => true,
'plan' => [
],
'segments' => 123,
'units' => '<string>'
]),
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/sequence.dfa"
payload := strings.NewReader("{\n \"assembly\": {},\n \"dfa\": {},\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"segments\": 123,\n \"units\": \"<string>\"\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/sequence.dfa")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"dfa\": {},\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"segments\": 123,\n \"units\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.dfa")
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 \"assembly\": {},\n \"dfa\": {},\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"segments\": 123,\n \"units\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
The DFA overrides: parts {: {difficulty (tangle | nest | slippery | delicate | flexible | sharp), needs_tweezers, two_hands, obstructed_access, restricted_vision, hold_down, self_locating, resistance, securing (none | snap | plastic_bend | rivet | screw), moves_relative, different_material, separate_for_assembly, alpha_deg, beta_deg, size_mm, thickness_mm, density_kg_m3, handling_code, insertion_code, handling_seconds, insertion_seconds}}, density_kg_m3 (default 7850), ideal_time_s (default 3).
The oracles' options: paths / stability / access / detect_fasteners (booleans), path_difficulty (0–100, the RRT budget), path_tolerance_rel and release_rel (of the scene diagonal), slide_samples, seed, friction ({default, pairs[]}), max_hands, tools[] (allowed tool id prefixes), min_gap_mm, property_class ("8.8" | "10.9" | "12.9" | "A2-70" | null).
AQ3's request: base[] (component ids; empty = the fixed ones, else the largest part), constraints[] ({kind: before, a, b} | {kind: group, parts[]} | {kind: keep_together, parts[]} | {kind: serviceable, part, within?}), fasteners[] ({component, drive} — detected fasteners are added), search ({kind: beam, width} | {kind: astar, max_nodes, heuristic (true: the admissible travel bound, AQ3.c)}), weights (direction_change, reorientation, tool_change, held_part, travel, fastener_deferral, service_delay), up (the base's up, default +z), max_subassembly_depth, prefer_subassemblies (AQ3.c: touching parts each removable on their own are also offered as one sub-assembly step, planned below; off by default).
Response
dfa {schema, rows[] {step, part, count, handling {code, seconds, source, confidence, meaning}, insertion {...}, total_s, necessary, features}, n_parts, n_min, total_time_s, handling_time_s, insertion_time_s, ideal_time_s, index, sources[], transcribed_codes[], key}, dfa_key, plan_key, complete, order[], sequence_key