Plate > Calculate Cut Time and Nest > Calculate Cut Time ask for the
outside feed, rapid, pierce time, hole feed, acceleration machine and
etch choice (remembered in the settings both apps share, saved however
the dialog closes, as WinForms), then show the timing as the WinForms
Timing Information window.
Plate > Simulate Cutting and its toolbar button open the Cut Simulator:
play and pause at 1x to 250x, restart and end, part and cutout jumps,
move stepping with the arrow keys, scrubbing, and the time, part,
drawing and motion at the playhead, retimed as the feeds change and
following the shown plate. The plate view draws the cut trail, travel,
the torch and pierces, and mutes parts and cut-off segments the torch
has not reached. While it is open the nest is view-only, as WinForms:
only the plate view and its header stay live, Escape closes it and
Ctrl+Plus and Ctrl+Minus still zoom.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CutTimeReport computes and words what Calculate Cut Time shows for a plate
or nest (time from the simulation with acceleration plus clamp removal,
distances and counts from the timing info) as the WinForms timing window.
CutTimeEntry and CutTimeMachineChoice hold the dialog's box ranges, the
entered values' cut parameters and the Acceleration list's entries.
CutSimulationPlayback is the simulator's playhead without drawing: play,
pause and speed, scrubbing, part, cutout and move stepping, retiming that
keeps the torch in place and which parts it has not reached;
CutSimulationStatus words its status rows.
The WinForms timing window, cut parameters dialog, machine box, simulator
and overlay now call them; their behavior is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two nests that should have been one (a thickness saved as 0.1196 instead
of 0.12 kept N26-2CN and N26-2CH apart in Auto Nest) could only be joined
by re-importing drawings and re-nesting. Copy and Cut now also remember
the selected parts, and Paste (Ctrl+V) and Paste in Place (Ctrl+Shift+V)
put them into whichever nest is active.
A paste adds an exact copy of each drawing the target lacks, with its
required quantity, uses a same-named drawing with the same geometry, and
refuses a different drawing with the same name, since a nest cannot hold
two. Drawings are captured at copy time, so later edits or undo in the
source do not change what is pasted. Clipboard keys in text boxes now
edit the text instead of acting on parts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shift/Ctrl+click settles the preview onto the plate, then copies it. The
preview stayed on the settled copy until the mouse moved, so clicking again
without moving settled from inside that copy and stacked the next part on it.
The preview now goes back to where it was clicked, keeping any arrow nudge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DisposingAGridStopsItsShowingKeyboardToolTip expected ShowKeyboardToolTip
to leave an auto-pop timer running. On Windows 11 and later keyboard
tooltips are persistent and start none, and showing one hooks the form's
Deactivate, which stops the timer whenever the form loses activation
(it flaked on CI's Server 2022 runner). Set up the running timer
explicitly; the test still fails without GridStyle's dispose hook.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PlannedDoor_PostsExactlyItsCutsAndNeverTheOutline posts the same nest
twice; the Cincinnati header stamps the clock to the second, so CI
failed when the two posts straddled a second boundary.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resize to Fit and Edit Plate change the plate's area without changing
its part count, so the cached utilization text went stale. Also correct
the comment on why a failed spacing search records nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Plates tab lists each plate as the WinForms list does: its number
("New plate" for the trailing empty one), size, part count, utilization
and, beside it, how many sheets are cut from it. A click shows the
plate, a double-click edits it, and its menu duplicates or deletes it.
Dragging a row moves the plate, Ctrl+drag drops a copy, a line showing
where; Alt+Up and Alt+Down move the current plate. The empty plate at
the end stays last.
The Plate menu gains Edit, Set as Default (the nest's default plate and
the defaults new nests start from), Rotate 90 degrees either way or 180
(fitting the turned plate), and Resize to Fit (Ctrl+P, by the auto-size
factor in Options); the Nest menu gains Remove Empty Plates. Each is
one undo step under its WinForms label, through the shared
PlateCommands, and none runs while Auto Nest works on the nest.
Edit Plate edits the quantity, size, part and edge spacing, the
quadrant with a picker (click or arrow keys) and the sheet: rectangular,
or an outline imported from a DXF, DWG or SVG file (an SVG that does not
state its size asks what its units are first), with Clear to make it a
rectangle again. Done is enabled only when the size parses and the edge
spacing leaves room on the sheet; an empty plate's new settings become
the nest's defaults.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PlateCommands ports the WinForms nest window's plate commands, each one
undo step under its WinForms label: Remove Plate, Remove Empty Plates,
Duplicate Plate (the copy current, with its own cutting parameters),
Move Plate and its Alt+Up/Alt+Down target, Rotate Plate (90 degrees
either way or 180), Resize Plate to its parts by the auto-size factor,
Set Nest Default Plate, and Edit Plate's commit, where an empty plate's
new settings become the nest's defaults and the nested quantities are
counted again. NewNestDefaults is what Set as Default saves for new
nests: the plate, the saved common-line usage and the nest's machine.
PlateEditValues is what Edit Plate edits (quantity, size, part and edge
spacing, quadrant, outline), when Done applies and how it writes the
plate; SheetOutlineImport reads an outline from a CAD file, and SvgScale
holds the scale prompt for an SVG that does not state its size.
PlateListRow is the Plates list's row text and its drag drop slots;
QuadrantPick the quadrant picker's hit test and cells.
The WinForms nest window, plate list, Edit Plate dialog, quadrant
picker, SVG scale prompt and Save Current as Defaults delegate to them
with unchanged behavior.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Plate > Arrange runs the shared Arrange edits on the active nest's
plate, each one undo step under the WinForms label:
- Left, Right, Top, Bottom, Horizontally and Vertically line the
selection up with its first selected part; Evenly Space Horizontally
and Vertically spread it; Center Parts centers every part in the work
area.
- Join Common Line joins the selection at the kerf of the plate's
cutting parameters, Remove Common Line removes its groups (each says
why when it cannot), and Cut Common Lines Twice is a checked toggle
showing the plate's setting.
- Expand Spacing and Fix Spacing search on a worker behind a modal
Cancel window (OperationProgressDialog, the WinForms
OperationProgressForm's rules): it appears once a run outlasts
300 ms, Cancel, Escape and the close box only request cancellation,
and it closes once the worker stops. The plate takes no edits until
then. Expand needs two selected parts; while Auto Nest works on the
nest both say to finish it first. Their result shows in the status
bar.
A right click released on a selected part in Select opens a menu with
Join and Remove Common Line, enabled as in WinForms. While Auto Nest
works on the nest the other Arrange commands are disabled, as the
WinForms modal progress window keeps them out of reach.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OperationProgress holds what the WinForms Cancel window for Expand and
Fix Spacing does apart from drawing itself: a run that finishes within
300 ms never shows it, the caller blocks until then, the elapsed time
updates every half second, and after Cancel it reads "Canceling...
waiting for the current step to stop". The WinForms window now uses it
with unchanged behavior.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The toolbar's Engine list shows each engine's description beside its
name and its tooltip, and saves the choice through EngineSelection. The
status bar follows the WinForms strip: the tool's name and hint with the
last notice, the location (a click switches between following the mouse
and showing left clicks, saved for both apps), the selection, the
nest's machine (either button lists the machines to assign), material,
plate utilization and the version. Nest > Machine assigns a machine as
one undoable step, refused while Auto Nest works on the nest or the
plate's tool is busy; Auto Nest is enabled only with a plate to nest on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MainStatusText words the main window's location, machine, material,
utilization and version labels as WinForms does, with the labels'
tooltips and the StatusBarLocationFollowsMouse setting both apps keep.
MachineMenu lists the machines for Nest > Machine and the machine label
(by name, the nest's checked, one no longer on file checked and
disabled), and MachineSettingsSource.ApplyMachine assigns one with its
support grid, cut-off defaults and spacing. PlateWorkGuard holds the
"Finish or cancel the current nesting or plate action first." check.
The WinForms main window delegates to them unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
View > Zoom To (Area, Fit, Plate, Selected), Zoom In (Ctrl+Plus) and Zoom Out
(Ctrl+Minus), the nest header's zoom buttons, Nest > First/Last/Next
(Ctrl+Right)/Previous (Ctrl+Left) Plate and Tools > Measure Area, as WinForms.
The wheel zooms by the WinForms step, panning hides the hover highlight, and
resting on a part shows its drawing name after a second.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ZoomWindowTool and MeasureAreaTool port the WinForms Zoom Window and Select
Area actions onto the shared plate tool framework; PartHoverTip is the plate
view's delayed drawing-name tooltip; PlateZoom gives the Zoom To areas.
ViewTransform now scales with the viewport on resize as DrawControl does and
zooms about its center by the menu's 1.5 step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PlateArrange ports the WinForms Arrange commands, each one undo step
under its WinForms label: Align Left/Right/Top/Bottom, Horizontally and
Vertically (lined up with the first selected part), Evenly Space
Horizontally/Vertically, Center Parts, Join Common Line (facing edges up
to four part spacings, at least an inch, apart), Remove Common Line and
Cut Common Lines Twice/Once. It also decides which common-line commands
the part right-click menu enables.
Expand Spacing and Fix Spacing take a runner for the search, so a front
end can run it off the UI thread behind a Cancel window; the step opens
before the search (it moves the live parts when it finishes), and a
canceled run moves nothing and records nothing. They return the parts
to redraw and the status line WinForms shows.
The WinForms plate view, selection manager and part menu now delegate
to it with unchanged behavior; Center Parts keeps its own loop, which
moves the view's layout parts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boxes.py with a burn above 0 leaves out an outline's last corner, so
the curved BreadBox sides ended 0.14 mm open and Separate split their
slots and edges into stray parts. Import now closes a subpath of three
or more segments that ends within 0.5 mm of its start, and warns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Separate gave no way to see what each part would take before
splitting the file. Preview Parts, joined to the front of the
Separate button, draws every entity in its part's color and labels
each part with the name it would get.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boxes.py runs past each corner and straight back before turning. Merging
those overlapping lines dropped the point where the outline turned, so a
BreadBox's curved strips imported open and Separate counted their pieces
as parts. A straight segment that turns back along the previous one now
leaves only their net line; one that returns exactly to its start keeps
the line, as a slit cut there and back.
Text that import reads as a group's name is no longer reported as a
skipped element, so a Boxes.py sheet opens without the partial-import
message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Bezier that ends where it starts, inside a subpath that draws anything
else, imported as a tiny circle and became a hole. Boxes.py draws one at
every inside corner when its burn is above 0, so a SlidingDrawer came in
with 248 fake holes. Import now drops such loops and warns, asking for
burn 0 since the burn also enlarges every part. A loop that is its
subpath's whole drawing still imports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A group with no title that holds exactly one visible text child now
labels its geometry with that text, so Separate Parts names the pieces
of a Boxes.py sheet ("Top", "Wall 1"). Titles still take precedence,
and layer groups never use their text as a name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Interactive Fill on a plate with clamps took over five minutes on a
1240-part sheet. Every progress report certified all the parts again, and
the pair phase checked grids for overlaps whose count could not beat the
best so far.
- Fill the clamp-free strip first, then the whole work area with clamp
hits dropped; a tie keeps the strip layout.
- Certify a preview only when its layout changed, and cache each part's
material geometry for the certification.
- Resolve a whole-pair grid only when its outcome can change a decision,
and drop a candidate without sorting when none of its grids can beat
the count to beat. Layouts are unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ReleasedContourState.AnalyzeMoves took its strict, fixed, raised and
warning finding lists as four parameters. They now travel in one
ContourFindings sink, which also routes a finding by fixed ownership.
The rapid-crossing loop, the open-cut retention proof and the part-end
open-cut obstacle move to private methods. Finding order, contents and
cancellation checks are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenNest.Gpu never ran: the best-fit slide search passes native entities,
whose GpuDistanceComputer overload fell back to the CPU, and the GPU pair
evaluator was disabled earlier. Remove the project, its axis-only
ISlideComputer adapter (GpuDistanceComputer, BestFitCache.CreateSlideComputer,
BestFitFinder's slideComputer parameter), the Training tool's GPU wiring,
SpatialQuery.FlattenLines and the ILGPU tests. Best fit always uses
CpuDistanceComputer, as it already did.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extract RemoveFeature<T> for the breakoff, tabbed-cutout and dimension remove handlers, and BreakoffsChanged/TabbedCutoutsChanged for the refresh-then-mark-stale tail of every add, edit, remove, flip and tab-drag handler. Behavior unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- NestItem.WithQuantity replaces eight hand-written copies that changed only
the quantity, so a new field is copied everywhere.
- The WinForms support overlay uses Desktop's SupportAnalysisCache and
SupportClearance instead of its own copy.
- CuttingParameters.LeadInFor/LeadOutFor replace the contour-type switches in
ContourCuttingStrategy and ActionLeadIn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- fill_plate and fill_area share one MCP fill helper
- FillLinear uses FillHelpers.HasOverlappingParts
- BestFitCache and FillResultCache entries derive from DrawingCacheEntry
- NestDefaults and ClampSettings read through SettingsFile.TryReadText
- MainForm view toggles share one ToggleView handler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Expand Spacing kept the first selected part fixed and stalled on full plates.
- A pair of selected parts now shares each push (later part half, earlier
part the rest, later part any remainder), so no selected part is an anchor.
Both shares run to the full target, so a part between two short gaps no
longer ping-pongs while its partners never move.
- Clamps act like the work-area edge: a part may close on the keep-out but
never enter it, and the clamp gap neither chases the target spacing nor
counts as the achieved spacing. Before, clamps held their full entry gap
and a part resting just above one capped the whole search.
- A part flush on an edge can slide along it again. A push that leaned into
the edge by rounding (parts turned a quarter or half) divided zero room by
a tiny component and pinned every move.
- Faster search with identical layouts: per-part pair lists, clearances
remembered at the positions measured, box-proven clamp pairs skipped,
trial-move gaps measured only up to their threshold, the overlap clipping
run only for outlines that touch, cross or nest, and ring distances
measured at offsets without copying outlines. Clearance gains the bounded
and offset distance used for this.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Selecting parts on the plate selects their drawing in the nest window's
drawing list when they all share one; a mixed or empty selection, or a
drawing the list hides, leaves the list's selection as it was.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CuttingPlanSnapshot: one private Copy carries every value and init
property for WithSearchLimits, WithTabLeadOuts, WithPreservedOrder and
WithTabbedPartsAvoided, keeping the defensive CrossableTabbedParts copy.
- NestPhaseExtensions: DisplayName and ShortName share one attribute
lookup and keep their own caches.
- NestDatabase: History, DrawingHistory and DrawingSetHistory share
ReadRevisionPage (count, page query, read rows) under the same lock.
- NestServerClient.GetOrNullAsync: the GET, 404 check-then-null, ensure
success and read flow used by the Remote* clients.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Route the four identical even-odd ray casts through RingContainment.Contains and share the arc-intersection, span-pairing, overlap-region, lead-in, plate-offset, leader-edge, entity-copy and path-perimeter duplicates. Expressions and loop order are unchanged, so results are bit-identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cut-off handler's hit test delegates to the Desktop PlateHitTester's
CutOffAt, the CAD Converter's breakoff and tabbed-cutout tab drags and
junction splits share small helpers, and the program editor's contour
start and end points share one entity-endpoint switch. Behavior is
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raster took each rotation's extents from the spacing outline, whose
vertices Clipper rounds to a 0.0001 grid, while the layout check measures
the geometry itself with 0.00001 of slack. A turned part pushed to a
work-area edge could end up to 0.00005 past it, which rejected seven of
the 49 variants on the README mixed job.
Position selection is unchanged. A part whose geometry would end past the
work area is nudged inside it, and a rotation whose geometry does not fit
the sheet is not tried, so already valid layouts stay identical.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Where the whole parts table fits on the diagram's page, the diagram takes
the room left over and the table sits at the foot of the page. Longer
tables keep the 265 pt diagram and continue on later pages.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Plan capture runs on the UI thread, so the panel stayed blank for several
seconds when planning every plate of a large nest. Paint the window with
its "Planning..." status first.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Set OPENNEST_NEST_LOG to a directory to write one JSON Lines file of
events and a text summary per Default solve: each candidate engine's
result, time and passes, and why the winning layout was chosen. It only
observes, so layouts are the same with it on or off.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PDFsharp 6.2.4's XGraphicsPath.AddArc loops until memory runs out on some
arcs ending on a quadrant boundary within rounding, which nested part
geometry produces. Nest reports and part printouts now build arcs from
Bezier curves themselves.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>