docs(io): state when an empty clamp sheet is omitted

The empty-plate rule drops a rail-following empty sheet only while it
still matches the plate defaults; a trailing sheet created before the
defaults changed is written. Say so instead of promising that the
editor's trailing sheet is always dropped. Comment and documentation
only; behaviour unchanged.

Delta review minor finding, Project Memory 4e5f566d.
This commit is contained in:
aj committed 2026-10-13 18:15:49 -04:00
1 parent 5125a5f2f3
commit 37700b3ef9
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -228,7 +228,8 @@ namespace OpenNest.IO
var plate = nest.Plates[i];
// An empty plate is omitted unless that would lose a clamp configuration the
// saved defaults cannot recreate; the editor's trailing empty sheet is dropped.
// saved defaults cannot recreate; a trailing empty sheet that still matches
// the defaults is dropped.
if (
plate.Parts.Count(p => !p.BaseDrawing.IsCutOff) == 0
&& plate.CutOffs.Count == 0
+3 -2
View File
@@ -83,8 +83,9 @@ An empty plate (no parts, no cut-offs) is omitted from the file unless that
would lose clamp zones: it is omitted like any other empty plate only when a
new plate from the saved defaults would recreate it (same size and quadrant,
zones the saved rail recreates), which keeps the editor's trailing empty sheet
out of the file. An empty plate with other zones, or a rail-following one
whose size or quadrant differs from the defaults, is written.
out of the file while it still matches the defaults. An empty plate with other
zones, or a rail-following one whose size or quadrant differs from the defaults
(including a trailing sheet created before the defaults changed), is written.
## Drawing edits