Skip to main content

assembly_frame_solve_json

Function assembly_frame_solve_json 

Source
pub fn assembly_frame_solve_json(request_json: &str) -> Result<String, JsValue>
Expand description

One frame of a motion study against the session (lifecycle::frame_solve). Request {overrides: {constraintId: {value?: number, enabled?: bool}}, reference?: {componentId: {translate, rotateEulerDeg}}}: value drives a distance or angle constraint to it (model units or degrees; an angle may run past 360), enabled switches a constraint off or on for the frame, and reference is the previous frame’s poses (the warm start). Reply {ok: true, poses: {componentId: {translate, rotateEulerDeg}}} for every movable body; Err when the mates cannot hold the frame or an override names a constraint the session lacks or drives one that is not a distance or angle. Nothing in the session changes.