Job numbers were going into Customer ("GM / 4980-88R"), which breaks
sorting, searching and grouping by customer. A nest now has its own
Job # field: one or several jobs separated by commas, normalized to
"a, b". It is saved in nest.json and the server (schema v21), edited
beside Customer in Edit Nest (WinForms and Avalonia), shown as a
sortable, searchable column in the Open list, and printed on the nest
report and in MCP output.
Deploy the server before the desktop: the open overlay takes the
server's job number, and an older server has none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a linear scale topped by the cells at the torch, nearly the whole
sheet drew in the coolest blue. Color rises logarithmically from 10 °C
to the 99.5th percentile of the cut's peaks, held between 100 and
1000 °C, and label the colors with a bar down the plate view's right
edge.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With short steps only around the torch, the processor is faster than the
card at the quarter-inch cells full sheets use, and the card only gained
at a cell size they do not use. Drop OpenNest.Gpu, the ILGPU dependency
and the accelerator interface; the heat map runs the same on every
computer. The measured card timings stay in docs/plate-heat-map.md.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
With short steps only around the torch, the processor runs a 5x10 sheet's
quarter-inch cells in 0.2-0.5 s where a graphics card takes 0.45-1.0 s, so
grids under 250,000 cells now stay on the processor and the card serves
only finer ones. The cut simulator starts the card on demand, so a run
that stays on the processor no longer waits about half a second for it.
Automatic cell sizes no longer depend on an accelerator: one budget of
4 billion cell updates keeps quarter-inch cells on a full sheet for cuts
of about six hours in mild steel (about 3 s to compute), and every
computer draws the same picture.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Split only cutting time into short steps, raise the automatic resolution,
add an optional ILGPU accelerator with CPU fallback, and estimate heat off
the UI thread.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
While the cut simulator is open, a left click on the plate (Select tool)
pauses at the time the tool passes nearest the click instead of selecting
parts. Cuts, scribes and pierces win over rapids; overlapping passes
resolve to the one nearest the current time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nests showed only the decimal (0.135), while the shop thinks in gauges.
A nest now keeps a ThicknessName in its file, record and the server
(schema v20), set from Nest Information's new box, which suggests the
machine's name or the nearest standard gauge. The Open list, status bar
and reports show "10 ga (0.135)"; nests saved without a name get one
looked up for display only.
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>
CutOffEdits ports the WinForms manual cut-off edits, each one undo step
under its WinForms label: Add Cut-Off (a Sheet Cut-Off line, stopped at
the first crossing unless full length), Trim/Extend Cut-Off and Swap
Through-Cut, applied to the definitions in Plate.CutOffs, rebuilt with
RegenerateCutOffs and placed with PlateSequencing.PlaceCutOffs.
CutOffDrag is the Move Cut-Off drag, taking the joined lines along.
SheetCutOffTool (Space turns the axis, Tab toggles full length for the
view) and TrimExtendCutOffTool (Tab switches mode) are plate tools; the
Select tool now drags a pressed cut-off.
AutomaticCutOffSession holds the Automatic Scrap Cutoffs dialog's
logic: unit-aware defaults, parsing, planning and applying through
AutomaticCutOffBatch as one step, and the status, details and per-plate
table texts.
The WinForms actions, cut-off handler, junction menu and dialog now
delegate to it with unchanged behavior, except that releasing a
cut-off without moving it no longer rebuilds the cut-offs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves the Drawings tab's row content (quantity, size, area, highlight and
quantity bar, the hidden-list note), Delete Drawing, Remove Unused Drawings
and the Drawing Properties dialog's values and color rules into
OpenNest.Desktop so the Avalonia app can share them. The WinForms list,
nest window and Edit Drawing form delegate to them unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NestInfoValues is what Nest > Edit edits (name, dates, thickness,
material and grade, customer, status, author, units, notes and the plate
defaults): read from a nest, when Done is enabled, how it writes the
nest, which Made By to remember, the material and grade lists and the
fields undo puts back. NestCommands holds its commit as one "Nest Info"
step (a changed material or thickness takes the machine's spacing and an
untouched trailing sheet follows), the defaults "Use these defaults for
new nests" saves, and Clear Nest as one "Clear Nest" step with its
question and busy message. NestDefaultsChoices holds the Tools > Nest
Defaults dialog's machine order, common-line list and box ranges.
The WinForms Edit Nest dialog, nest window and Nest Defaults dialog
delegate to them with unchanged behavior.
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>
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>
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>
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>
- 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>
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>
Auto Nest's Plates choice lets a run use only the nest's current plates
(the free space beside parts already placed, then the empty plates it was
given) or current plates first and then new sheets. New plates stays the
default and unchanged. The review draws parts already on a plate in one
gray, and the whole proposal is kept in one undo record.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
View in CAD and View Nest Report started the associated program in the
app's working directory, the Velopack install folder. A CAD program left
open held that folder, so every update failed to swap it and the app
relaunched on the old version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plate Export dialog gains "SVG for laser software, e.g. LightBurn":
only cut and mark geometry (no plate outline, rapids, display-only
geometry or uncut tabs), each kind stroked in its own LightBurn palette
color so it lands on its own layer. The plain SVG export is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roslyn Bridge's duplicate scan found helpers copied verbatim between
projects, so a fix to one copy could silently miss the other. Each copy
now calls a single implementation with the same body:
- boundary nearest point: ClipperBridge.NearestBoundaryPoint (ErodedPierce,
ScrapPierceSearch)
- nesting profile of a part: NestLayoutCheck.Profile (CommonLinePair)
- part label points: PartLabels in OpenNest.Desktop (WinForms LayoutPart)
- copied common-line groups: CommonLineGroup.AmongParts (ActionClone,
PlaceTool)
- shared saved cutting parameters: CuttingParametersSerializer.SharedBy
(MCP, Console)
- bounding box of boxes: generic BoundingBox.GetBoundingBox<T> (rectangle
packing items)
- box proximity: Clearance.BoxesWithin (Expander)
Behavior is unchanged: every moved body is identical to the copies it
replaces, so the fill change in Expander and rectangle packing skips the
problem-nest corpus. Core, IO, Desktop and Engine suites and the label,
clone and common-line WinForms tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Options is now a sidebar of pages (General, Nesting & Cutting, Fill
Strategies, Nest Server, MaterialLedger, Updates), each with a heading,
a summary and hints under its fields; the window is resizable and
reopens on the last page used.
Nest Server lists the saved servers in an editable grid (add in the blank
last row, remove any but the active one) with an Active server dropdown.
The list saves with the dialog's Save after every row is checked, so a
bad address saves nothing and keeps the dialog open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every green master push becomes a development build, six to thirty a
day, so a copy taking them showed "Update ready" several times a day.
Tools > Options replaces the Include development builds box with an
Updates choice: Stable releases only, Development builds at most once a
day, at most once a week, or Every development build.
The choice is stored as the existing UpdateIncludeDevBuilds plus a new
UpdateDevBuildInterval, so a copy with only the old box checked reads as
Every development build and nothing changes until someone picks, and an
older build still reads the channel. Saving Stable keeps the stored
interval. Both Options dialogs (WinForms and Avalonia) carry the choice,
so saving either never resets it.
On the daily and weekly choices the 30-minute background check waits
until the calendar day after (or seven days after) this copy first ran
its current version, recorded at startup in UpdateRunningVersion and
UpdateRunningSince however that version arrived. Local calendar days,
so a copy started a little earlier each morning still updates daily.
Help > Check for Updates... never waits. The rule lives in
OpenNest.Desktop (DevBuildSchedule) with tests on Linux; UpdaterService
only applies it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A sort drop-down on the Drawings toolbar orders the list by Name,
Area, Bounding Box Size or Remaining Qty (largest first, ties by
name). The choice is saved as the DrawingSortOrder user setting.
Placing parts re-sorts a Remaining Qty list, rebuilding only when the
order or the hidden drawings change, which also keeps re-shown
drawings in sorted place under Hide Fully Nested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DrawingPlacement.AddPart is the WinForms drop of a dragged drawing on the
plate: one part with its bounding box centred on the drop point, as one
Add Part step, refused without a plate or while edits are locked. As in
WinForms it leaves the cut-offs as they are. CreatePlaceTool starts the
place tool with one new part of a drawing.
DrawingPickup is the drawing list's pick-up: a single press arms it, the
plate view taking the keyboard takes the drawing then selected (staying
armed when none is), and a drop, double-click or Undo puts it down.
Port the WinForms Clone Parts action as the toolkit-neutral PlaceTool:
copies of the sources follow the pointer by their lower-left corner (a
move to the same screen point is ignored, keeping arrow-key nudges), and
each left click places another copy as one Add Part/Add Parts step.
Shift settles toward the quadrant corner on geometry, Ctrl alone on
bounding boxes, reading the placement order at each click. Copied
common-line groups are joined again among the copies and cut-offs are
rebuilt. Delete removes the sources plus selected plate parts in one
Delete step, recorded (and cut-offs rebuilt) only when any were on the
plate. Settling runs before the step opens, so a failure there leaves
nothing to roll back; the copy does not follow the pointer while edits
are locked, as WinForms raises no mouse move then.
PlateClipboard.Copy/Cut start the tool with the selected parts; Cut then
removes the sources as one Cut step without rebuilding cut-offs, as
WinForms does.
While placing, PlateEdits nudges, steps, pushes and rotates the previews
instead of the selection. Unlike WinForms, which records an empty undo
step there, these edits open no undo step, and they never rebuild
cut-offs since the previews are not on the plate.
Irregular picks each sheet's stock on an estimate of what the leftovers
will cost, so a size that took every remaining part could lose the pick
to a plan that ended up dearer, and its trial sheet was thrown away.
Each pass now keeps those finished plans: one that beats the pass's own
plan replaces it, and the rest are reported as alternatives (at most six
a pass). No extra sheets are packed.
The progress window's layout families now include the sheet sizes, so a
one-sheet 60 x 120 layout is offered beside a one-sheet 48 x 144 best
instead of being dropped as a near copy.
With 48 x 96, 48 x 144 and 60 x 120 offered, the seven sample parts (130
copies) still take one 48 x 144 sheet and now end at 130.7" instead of
136.6"; the tutorial and synthetic nests are unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Auto Nest progress window lists up to three whole-job layouts as
cards, the engine's best first and then the best of each other family
(sheet count and free-strip direction). Every sheet shows the distance
from its parts to the right edge (vertical strips) or the top
(horizontal strips), dimensioned on the sheet. Any card can be used:
during the search it stops it, and a finished search with more than one
layout waits for the pick. The layout used is validated and bound like
the engine's own result.
Engines may report plans that lost to their best as
NestJobStage.PlanAlternative; Irregular, Default and the time-limited
solve do. Reporting never changes a layout.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Export... saves the selected drawing's listed revision; Export Listed
Drawings writes every drawing on the page to a folder, numbering
names the batch already used and asking once before replacing files.
Files are written beside the target and moved into place.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PlateEdits ports the WinForms plate view's edits of the selection, with
its undo labels and coalescing: Delete (parts and cut-offs, cut-offs
regenerated once when the plate has any), Nudge by the offset increment
or one repeat step, Push to contact, Rotate about the selection's
centre keeping its lower-left corner (a quarter turn, or by wheel
notches at 10 degrees or a tenth of that), repeated nudges and wheel
turns undoing as one step.
The Select tool drags the selection as one Move step. Cut-offs
regenerate when a drag actually moved parts (WinForms also does it on a
plain click, adding an extra undo step); the regeneration runs before
the step completes, so a failure rolls the drag back, and a view that
loses the pointer mid-drag ends the move as a release would, keeping
the selection.
A plate tool host now has to supply its undo wiring, the nest's cut-off
settings and an edits lock (WinForms EditsLocked): while locked no edit
runs and no press selects or starts a move.
DesktopStartup holds the WinForms main window's start-up steps in its
order for the Avalonia app: first the one-time conversion of the legacy
nest template into the nest defaults file, then whether Tools > Options >
Create a new nest on startup asks for a new nest.
Run reads the shared user settings but never writes them, so it can run
off the UI thread; it reports whether to clear NestTemplatePath, and
ClearTemplateSetting empties that setting alone on the caller's (UI)
thread, as the window's other settings writers run there.
WinForms removed the direct-save command in ecd0bba4; the system PDF
viewer that Nest Report opens already saves and prints the report.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Combine the Edit menu (Undo, Redo, Select All) and restore the whole
part selection by index after an Undo or Redo, now that the canvas
selects several parts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PlateToolManager keeps one active tool with the WinForms action rules
(Escape cancels, then returns to Select, then resumes the ended tool) and
status text. SelectTool selects by click, Ctrl+click and window
(contains/intersect), takes common-line groups together and picks
cut-offs by their strokes. PlateHitTester hit-tests the shared display
geometry; PlateSelection reads and sets by part index.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ExternalFileLauncher.OpenAsync waits for xdg-open or open without blocking
and explains a failed exit code (no program set up for the file type, file
not found), which the shell-less platforms otherwise swallow. File > Export
no longer takes .bmp as an image: no cross-platform encoder writes it, so
the image formats are .png, .jpg and .jpeg.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the toolkit-neutral parts of File > Export/Export All, Plate > View
in CAD and the nest report commands into OpenNest.Desktop: export formats
and suggested per-plate file names (now free of characters any platform
refuses), the placement list, DXF/SVG writing with the view image left to
the front end, opening a file in its associated program on Windows, macOS
and Linux, the report file name check, capture with catalog density, the
machine's thickness name and saved cut-time settings, and viewed-report
temp folders. WinForms calls the shared code; its behaviour is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NestTab starts a NestUndoRecorder once the trailing empty plate is in
place, so opening is not an edit. Modified now follows the history's save
point and unscoped edits (undoing back to the saved state clears it), and
SaveAs records an unscoped edit before marking the save point.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scopes, the fingerprint safety net, Undo/Redo stepping, the unsaved check,
identity carry-over and the Edit menu labels move from EditNestForm to
OpenNest.Desktop. The WinForms window keeps only its rebinding swap-in and
its guards; behavior is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DesktopOptions reads and writes the Tools > Options values under the
WinForms user-setting names, with the clone placement choices, the fill
strategy grid rows and DisabledStrategies parsing/applying, and the
server URL and update feed URL validation and messages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the File > New rules into OpenNest.Desktop (NewNestSource): nest
defaults, the default machine with its clamps and support grid, Made By
and the year's next name, from the nest server in Database mode and the
counter both apps keep in user-settings.json otherwise. The WinForms
factory now delegates to it.
The Avalonia app opens a new nest in a tab with no file (NestTabs.Add),
off the UI thread and one at a time, and its nest view keeps an empty
last plate as the WinForms nest window does, so a new nest shows Plate 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>