pyboxbuilder.export.layout_pdf.LayerPage

class pyboxbuilder.export.layout_pdf.LayerPage(name: str, active_placements: list[Placement], lower_placements: list[Placement], active_spacers: list[Placement], lower_spacers: list[Placement])[source]

Bases: object

One page of the packing guide: the layer it shows, and what is under it.

A record rather than a dict, so a typo in a key is an error at the line that made it rather than a KeyError three hundred lines later — and so the placements keep their type on the way through.

active_placements : list[Placement]

Boxes belonging to this layer, drawn in full colour.

active_spacers : list[Placement]

Spacer trays belonging to this layer.

lower_placements : list[Placement]

Boxes already packed beneath it, drawn in light grey for context.

lower_spacers : list[Placement]

Spacer trays beneath it.

name : str

The layer’s name, as printed on the page.