Skip to main content
POST
Design-for-assembly score of the planned build (Boothroyd-Dewhurst assembly time and DFA index)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
assembly
object
required

The assembly (components with recipes and poses, mates). Fixed components are the base unless plan.base names it.

dfa
object

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).

options
object

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).

oracles
boolean

The real AQ4 / AQ5 / AQ6 oracles (default true); false plans by geometry alone.

plan
object

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).

segments
integer

Tessellation segments for the placements (8 ..= 128, default 16).

units
string

The assembly's length unit: m (default) or mm.

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