Skip to main content

Module wizard

Module wizard 

Source
Expand description

The step-order wizard: proposes the step tree from an assembly’s occurrence tree and mate graph.

The order, per assembly level:

  1. every sub-assembly is one step of its parent’s level whose children are its own parts’ steps: they build it first, then the step places it;
  2. the grounded components come first, then mate order: the next component is the one mated to what is already placed, earliest in the assembly’s own order. When the assembly already has an exploded view, its steps seed the order instead (an exploded view lists parts coming OFF, so it reads backwards);
  3. fasteners come last, one step per fastener part, in the order of the parts they fasten, with the torque taken from the part’s attribute.

One step per component or sub-assembly. The author merges, splits and reorders afterwards (crate::edit).

Structs§

Component
Level
One assembly level: its components and the mates between them.

Functions§

find_level
The level at path inside root ("" is the root).
flatten
Every component of level and its sub-assemblies, depth first, each with the path of the level that holds it.
level_steps
The steps that build level, in proposed order; a sub-assembly’s step holds the steps that build it as its children.
order
The level’s components grouped into steps, in proposed order. Every group but a fastener group holds one component.
propose
Propose the steps for root into block, replacing its step tree.
step_for
The step that adds group.