feat(reporting): show clamps and sheet rulers on the plate layout view

Operators reading a printed nest report could not see where the machine
clamps sit or which ones must be pulled before cutting, and had no way to
measure positions off the layout. Plate diagrams now draw active clamps as
hatched rectangles (labels keep clear of them) and removed rail clamps as
dashed, crossed-out rectangles over the parts, with a legend line only on
plates that have clamps. A horizontal ruler below and a vertical ruler left
of the drawing read the sheet's plate coordinates in job units; the
diagram is fitted in two passes so the ruler bands match their numbers,
and part labels never enter them. Rulers draw as their own content stream
so the diagram stream holds only the sheet and what is on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-10 08:02:24 -05:00
1 parent bffcd52db1
commit f4fb6e1f3d
6 files changed
+474 -39

No files matched your search

+19
View File
@@ -64,6 +64,10 @@ the selected plate, or certify that a layout passed geometry/pre-post checks.
- A plate's sheet weight is one full sheet (its outline area for an irregular
sheet) times the nest thickness and density, from the nest material or the
catalog only: a drawing's own material does not say what the stock is.
- A plate's clamps are its clamp zones moved into the parts' frame with
`ClampZoneFrame`, then any rail clamps taken off that sheet (`RemovedClamps`,
resolved by the rail for the sheet), flagged as removed. Footprints stay whole,
even where they hang past the sheet.
## Layout, pagination and dense-label fallback
@@ -114,6 +118,21 @@ other part or cutoff, or if even that fallback finds no place for its label.
Clearance is tested against real contours, not bounding boxes, so a cluster nested
in a larger part's cutout or notch is still grouped and labeled. Dotted group outlines are distinct from dashed scrap cutoffs.
Machine clamps appear on the plate diagram as white, diagonally hatched
rectangles drawn under the parts, and IDs keep clear of them like any other
obstacle. A clamp taken off the sheet is a dashed rectangle crossed out, drawn
over the parts (they may sit where it was) so the operator sees it must come off
before cutting. A legend line explains them only on plates that have clamps.
Rulers sit beside the diagram: a horizontal one below it and a vertical one to its
left, each spanning the sheet and reading its plate coordinates (negative in
quadrants 2-4) in job units, with the unit in the corner between them. Numbered
ticks use the smallest 1-2-5 step at least 40 pt apart whose numbers do not touch,
subdivided as finely as stays legible. The diagram is fitted in two passes so the
ruler bands are sized to their numbers, and labels never enter those bands. The
rulers are drawn as their own content stream before the diagram's, so the
diagram's stream holds only the sheet and what is on it.
The writer still rejects, with `NotSupportedException` and before touching
the destination: