Expand description
The instructions block: everything an instructions document authors.
An instructions document places its target assembly as one grounded component and keeps the authored instructions in this top-level block. The block is plain data: a tree of steps. A step adds parts and may hold child steps, the group it installs: the children build the group (and see only it), then the step places it over what its earlier siblings built. Reading order is children first, then their parent, depth first. A sub-assembly is such a step: its parts’ steps are its children. Views are PMI views of the document, named by id; everything else a step shows is here.
Schema 1 kept chapters (one per assembly level) of flat steps; it reads as
the same tree (Instructions::from_value).
Structs§
- Add
- Parts one step adds: one part, at one or more occurrences.
- Arrow
- Callout
- Front
Matter - The cover and the lists before the steps.
- Instructions
- Occurrence
Change - One occurrence in a re-target diff.
- Parts
Row - One row of the parts list.
- Retarget
- A re-target waiting for approval: what changed between the two assembly revisions and the steps it touches.
- Signoff
- Step
- Target
- One revision of the target assembly.
- Template
- The printed page template, one per document.
- ToolUse
- A tool a step uses: a tools-library entry by id, with a snapshot of its name and spec so printed and offline copies need no server.
- Torque
Enums§
- Callout
Kind - Orientation
- Style
- How a document’s steps are drawn: in the PDF, the step images, the HTML player and the in-app player alike.
- Torque
Source
Constants§
- BLOCK_
KEY - The document key the block is stored under.
- DOCUMENT_
CLASS - The
documentClassvalue of an instructions document. - EXTENSION
- The file extension of an instructions document, dot included.
- FASTENER_
ATTRIBUTE - The part attribute that marks a fastener (bool).
- SCHEMA
- The block’s schema version.
- SERIAL_
TRACKED_ ATTRIBUTE - The part attribute that marks a serial-tracked part (bool).
- STEPS_
PER_ PAGE - The steps-per-page counts a template offers.
- TORQUE_
ATTRIBUTE - The part attribute holding a fastener’s torque, as text with its unit.
Functions§
- for_
each_ step_ mut fon every step of the tree, parents before children.- retain_
steps - Keep the steps
keepaccepts, at every level.