Skip to main content

Module bom

Module bom 

Source
Expand description

The bill of materials of an assembly: the table a part is ordered and made from (bom).

Lines. Placed parts are grouped into one line when they are the same part: placed from the same file, built with the same parameter values — every std:iso4762_socket_head_cap_screw.geop at size M4x12 is one line, however many there are and wherever they are placed. Where a part is placed, and where the parts placed in it are, is no part of what it is; its colour neither, since it is not ordered by it.

Structure. Structure::Flat lists what is made or bought: every part with bodies of its own, however deep it is placed, its quantity the count in the whole assembly. Structure::Indented lists the tree: the parts placed in the assembly, then under each sub-assembly the parts placed in it, its quantity the count per one of the sub-assembly — and a sub-assembly’s mass that of all of it.

Columns. Per part its name — a standard part’s title, else its file’s — the file, the parameter values it is built with, a standard part’s designation (ISO 4762 M4x12, see [designation]), its material, the thickness of its sheet-metal bodies, and its mass: per piece and for the quantity, from the exact geometry of its bodies and its own material (see super::solids). A part of no given material has none, and no mass; nor has an assembly with such a part in it.

Wires. The wires noted on a solid (see crate::SolidNote::wires) — a routed harness’ — are ordered: each is a line of its own under the part that routes it, with its gauge, colour and the length to cut it to. Its swept bundle is how it is drawn, not something ordered: a solid only drawn (crate::SolidNote::drawn_only) is neither a part’s body nor weighed.

Bom::to_csv writes the table for a spreadsheet. geop_ops_bom offers the bill as an inspector and as a CSV file; a drawing lists it.

Structs§

Bom
A bill of materials.
Line
One line of a bill of materials.

Enums§

LineKind
What a line of a bill of materials is.
Structure
How the lines of a bill of materials are laid out.

Functions§

bom
The bill of materials of the part reader reads, the program of the file file, laid out as structure says. A part placed is listed by its own title and designation, if it has them (see crate::parameters::Properties).