From 37700b3ef90381c5a6a6b54c0900be14a1feb64b Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Mon, 12 Oct 2026 19:13:27 -0400 Subject: [PATCH] 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. --- OpenNest.IO/NestWriter.cs | 3 ++- docs/nest-file-format.md | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenNest.IO/NestWriter.cs b/OpenNest.IO/NestWriter.cs index b53c749b..dfd9fa8b 100644 --- a/OpenNest.IO/NestWriter.cs +++ b/OpenNest.IO/NestWriter.cs @@ -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 diff --git a/docs/nest-file-format.md b/docs/nest-file-format.md index 63b238a0..59f75ce8 100644 --- a/docs/nest-file-format.md +++ b/docs/nest-file-format.md @@ -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