Expand description
General notes: the part’s AP242 notes (pmi:<identity>,
crate::pmi_lowering::sheet_requirements), then the Spec’s drawing notes (n:<k>), drawn as
draftwright draws its document notes (render_document_notes): one GENERAL NOTES table whose rows are
document_note_rows’ (each note numbered by its place in the list, 1 BREAK ALL SHARP EDGES, wrapped at 48 characters with continuation rows indented three spaces), in IBM Plex
Mono at 3 mm, each row 3 mm plus 2 mm of padding above and below, ruled as _build_table
rules it: draftwright’s single-column table, sharing the table’s pieces (src/tables.rs).
The block is reserved when the sheet is chosen, top right (draftwright’s
layout_required_tables), and placed after the dimensions, as draftwright places it after
everything else, by fit_box towards the top right, first with 6 mm of breathing room and
then at the text padding: clear of the views’ areas (their bands, where the dimension lanes
run), the isometric’s drawn box, every dimension’s ink and the title block. A block that
fits nowhere is a notes_not_placed error naming every note, which stays in the plan
undrawn; one that no sheet can hold at a standard scale is not reserved, so it never shrinks
the views (draftwright would take a computed scale for it).
A Spec note matching a part note is covered by it, with an offered fix removing the Spec
copy. Omission uses annotations/<id>/omit, keeping an undrawn item in the plan.
Differences from draftwright: a continuation row keeps its three-space indent, where
draftwright’s left alignment on each row’s ink drops it; the views’ areas are kept clear,
where draftwright’s late placement sees the views’ drawn boxes and the annotations’ ink.
Re-exports§
pub use crate::tables::PAD;pub use crate::tables::ROW;pub use crate::tables::TEXT;pub use crate::tables::ink;
Structs§
- Note
Spec - A general note as the spec states it.
- Notes
Block - The block the notes are drawn in: its heading and box, mm on the page.
- Placed
Note - A note’s place in the block, mm on the page.
- Planned
Note - A general note the sheet will carry.
Constants§
- TITLE
- The block’s heading, as draftwright’s
document_note_rowswrites it. - WRAP
- The characters a row holds before it wraps (draftwright’s
textwrap.wrap(width=48)).
Functions§
- check
- The notes are refused, with what to write instead, when an ID is not
n:<k>, two notes share an ID, or a note has no text. - next_id
- The first
n:<k>after every well-formed ID in ids. - plan
- The spec’s notes as Plan items, placed in one block clear of the views, the dimensions and the title block, or reported when the block has no place.
- rows
- Note number’s rows: the first numbered, the rest indented to its text.
- rules
- The block’s rules: its outline and a line under each row, as
_build_tablerules a table. - size
- The block’s size, mm, or none when there are no notes: what the sheet reserves for it.
- texts
- Every row the block draws, heading first, with its ink centre.
- wrap
- text broken into rows of at most
WRAPcharacters as Python’stextwrap.wrapbreaks it (break_long_words=False,break_on_hyphens=False): tabs expanded to 8 columns, ASCII whitespace read as spaces, words never split (a longer one has a row of its own), runs of spaces inside a row kept, and spaces at a row’s ends dropped.