feat(post): declare placed order for CL nests that post in it

The Cincinnati CL post always drew an "incomplete final rapid sequence"
warning because it never declared IPostVerificationSupport. It writes etch
features before cuts, inserts or drops rapids, and with part sub-programs
rapids to each part's corner, so it cannot declare it unconditionally.

IPostVerificationSupport gains a nest-aware PlacedProgramOrderChange(nest)
(null = preserved; otherwise the reason, shown in the warning). The CL post
answers it from its own writer: part sub-programs and smart rapids off, and
every part's and hole's posted motions exactly equal to its placed ones.
Plan Cutting cuts scribes first, so planned nests qualify. CNC output is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-02 17:21:25 -05:00
1 parent ceddd8cf93
commit 72039a238b
9 files changed
+392 -26

No files matched your search

+15
View File
@@ -60,6 +60,21 @@ Sub-program bodies start with a `:<subNum>` label and end with `M99`.
The post reads part programs through absolute-mode copies and never changes the
nest: an incremental part program stays incremental after posting.
### Order and pre-post verification
Within a part (and within each hole sub-program) the post writes etch features
before cut features, keeping each group in program order (`FeatureUtils.ClassifyAndOrder`).
It also inserts a rapid to a contour's return point when the contour opens without
one, and drops rapids with nothing to cut. Part sub-programs add a rapid to each
part's toolpath corner and back, and smart rapids blend rapids off the straight line.
The post declares that it preserves the placed order to
[pre-post verification](post-verification.md#selected-post-and-cut-order)
(`CincinnatiPlacedOrder`) only when, for the nest and settings being posted, none of
these changes a motion: part sub-programs and smart rapids off, and each part's and
hole's posted motions exactly equal to its placed ones. Plan Cutting already cuts a
part's scribes first, so planned nests qualify; otherwise posting warns that the
final rapid sequence is unverified. Output is the same either way.
### Sheet header
Each sheet sub-program re-anchors the work frame with `G92 X#5021 Y#5022`
+15 -6
View File
@@ -198,11 +198,17 @@ the gate is installed at OpenNest's desktop and console posting entry points.
Cincinnati CI Fiber preserves the placed part/contour order and pierce positions
used by this check. Cincinnati CL keeps placed part order, including cut-offs, but
puts etch features before cut features and can add subprogram routing moves;
Gravograph builds and optimizes separate tool passes. Those two posts, and unknown
plugins, therefore show an additional **incomplete final rapid sequence** warning
requiring acknowledgment even if the nest-level checks have no findings. This
change does not silently alter their existing CNC output order.
writes each part's (and hole's) etch features before its cut features, adds a rapid
ahead of a contour that opens without one, drops rapids with nothing to cut, and with
**Use part sub-programs** rapids to and from each part's corner. It declares the
placed order for a nest only when none of that changes a single motion with the
settings being posted: part sub-programs and smart rapids off, and every part's and
hole's motions, compared exactly, unchanged by its writer. Plan Cutting's programs
cut a part's scribes first, so a planned nest qualifies. Otherwise the warning names
the first part it changes, and the CNC output order is left as it was.
Gravograph builds and optimizes separate tool passes. It, a CL nest that does not
qualify, and unknown plugins show an additional **incomplete final rapid sequence**
warning requiring acknowledgment even if the nest-level checks have no findings.
## Limits and maintainer contract
@@ -218,7 +224,10 @@ its report exposes findings, display text, and `CanPost(risksAcknowledged)`. Use
`AnalyzeForPost` at posting entry points so unknown post ordering is not silently
certified. `IPostVerificationSupport.PreservesPlacedProgramOrder` is an opt-in
contract, not a machine-safety claim; only declare it after verifying the writer's
part order, contour order, and pierce positions. The WinForms dialog renders the
part order, contour order, and pierce positions. A post whose order depends on the
nest or its settings overrides `PlacedProgramOrderChange(nest)` instead, returning
null only when the posted motion sequence provably equals the placed one and
otherwise what it changes; the analyzer shows that reason in the warning. The WinForms dialog renders the
report and enforces per-attempt consent. New callers
must keep inputs stable until analysis completes, honor cancellation, and never
treat incomplete analysis as a clear result. Keep analysis out of paint handlers.