feat(reporting): show estimated cut time in nest reports

The nest report PDF gains an estimated cut time: the job total on the
summary, an Est. cut time column in the plates table, and per-plate and
all-copies times on each plate page. Times come from the cut simulation
with the settings last used in Calculate Cut Time, plus clamp removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-10-18 17:40:33 -04:00
1 parent d3cb23f117
commit 78ca08efe1
9 files changed
+144 -13

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
# Cut-time estimates
Calculate Cut Time and Plate > Simulate Cutting share one timing model
(`OpenNest.Core/CNC/CutSimulation.cs`, `ContourTiming.cs`, `MotionPlanner.cs`), and the
last-used settings are shared through `SavedCutParameters`.
Calculate Cut Time, Plate > Simulate Cutting and the [nest report](nest-reports.md) share one
timing model (`OpenNest.Core/CNC/CutSimulation.cs`, `ContourTiming.cs`, `MotionPlanner.cs`),
and the last-used settings are shared through `SavedCutParameters`.
## Inputs
+13 -2
View File
@@ -95,8 +95,19 @@ calling the library. PDFsharp/MigraDoc layout and font state is process-wide;
`NestPdfWriter.Write` serializes every export behind one static lock so
concurrent calls cannot lay out text differently from a sequential export.
Advanced timing, cutting distances, pierce counts, weights, costs, gas use, and
machine/NC identity are intentionally omitted until their semantics are verified.
## Estimated cut time
When the caller passes `CutParameters` (the desktop export always does, from the
settings last used in Calculate Cut Time or the simulator), each plate gets an
estimated time per copy from `CutSimulation`, plus clamp-removal minutes, the same
as Calculate Cut Time (see [cut-time estimates](cut-time-estimates.md)). The summary
shows the job total over all sheets, and the plates table gains an "Est. cut time"
column. Each plate page shows the time per plate and for all its copies. The report
does not state the settings behind the estimate. These are estimates, not
machine-reported times. Without `CutParameters` the report has no timing rows or column.
Cutting distances, pierce counts, weights, costs, gas use, and machine/NC identity
are intentionally omitted until their semantics are verified.
The PDF can be opened or printed through a normal PDF viewer.
## Backend, fonts and redistribution