Expand description
Manufacturing instructions on paper: the printed pages and the per-step pictures, drawn as sheets.
brep_instructions::layout says WHERE everything goes on each page; this
module fills those places with what the sheet writers already draw —
polylines and centred text runs in paper millimetres, plus each step’s view
projected as a placed view (ViewDrawing) — so the PDF and the SVG are
super::pdf::write_pdf and super::svg::to_svg unchanged. The
projections come from the engine, which owns the scene: it asks
picture_rects where each picture goes, fits a view into each with
fit, and hands the drawings back to pages or step_image.
Enums§
- Picture
At - Where a picture goes, keyed by what it shows:
coverfor the cover’s, else(page index, slot index)for a step slot’s.
Constants§
- IMAGE_
MM - A per-step picture: its paper and the caption band above the view.
Functions§
- cover_
step - The step a page’s cover shows: the front matter’s, else the last.
- fit
- The placement
(position, scale)that fits a view intorect, from its drawing at position[0, 0]and scale 1 (bounds= that drawing’s[x0, y0, x1, y1]). Text keeps its paper size, so this is the fit of the lines; the marginFILLleaves takes up the balloons’ slack. - image_
picture_ rect - Where a per-step picture’s view goes on its
IMAGE_MMpaper. - pages
- The printed pages as sheets, in print order: each page’s header (the
title, and the page number of the count), then its own content — the
cover’s title, assembly and picture; a parts or tools list’s rows; the
step slots, each framed, its picture in
picturesand its text beside or below. A picture missing frompicturesleaves its place empty. - picture_
rects - Every picture the pages draw, with the step whose view it is and the rectangle it is fitted into.
- step_
image - One step’s picture as a sheet: its number and title over its view.
- title
- The document’s title as the pages print it.
- wrap
textbroken into lines no wider thanwidthat cap heightcap, at spaces; a word wider than the line stands alone on one.