ajandClaude Opus 5.5 f76bad4bac feat(avalonia): Nest > Edit, Clear Nest and the nest defaults
Nest > Edit opens Edit Nest as the WinForms dialog has it: the Info tab
(name, dates, thickness with the standard gauges, material and grade
from the posts and machines, customer, units, status and author), the
Defaults tab (plate size, part and edge spacing, quadrant, and "Use
these defaults for new nests") and the Notes tab. Done is enabled while
the name, thickness and size read and the edge spacing leaves room; it
is one "Nest Info" undo step through the shared NestCommands, a typed
author is remembered for new nests, and the name stays the file's. A
click on the status bar's material label opens it too (a right-click
offers it in a menu), with the WinForms tooltip.

Nest > Clear Nest... asks before leaving one empty plate, as one "Clear
Nest" step; it is refused while Auto Nest or a save runs or the plate
tool is busy. Tools > Nest Defaults... edits the machine, units, plate
size, quadrant, spacing and common-line usage new nests start from,
saved where they are read (the nest server once it holds them, read-only
while it cannot be reached), and Save Current Plate as Defaults saves
the shown plate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:49:17 -05:00
2026-11-26 15:30:18 -05:00

OpenNest

A Windows desktop application for CNC nesting — imports DXF, DWG and SVG drawings, arranges parts on material plates, and exports layouts as DXF, SVG or G-code for cutting.

OpenNest - 137 parts nested on a 60x120 plate OpenNest - cut simulator replaying the plate in cut order

Features

  • Import / export — DXF, DWG (ACadSharp) and SVG parts, Excel BOMs, bend-line detection, built-in parametric shapes; export plates as DXF, SVG or post-processed G-code, and single drawings from the CAD Converter as DXF, DWG or SVG with their bends. SVG import and export.
  • Nesting — automatic multi-plate/multi-material jobs, interlocking pair evaluation, and built-in or plug-in engines. Choose an engine.
  • Plate operations — manual sheet cut-offs, plate- or nest-wide automatic scrap cutoffs that cut the skeleton into strips sized for your scrap hopper while keeping a reusable tail, oversized-part splitting (straight, weld-gap tabs, spike-groove), interactive editing, and spacing-aware pushes that can slide along or away from touching parts.
  • Visual overlap check — highlight shared material on the active plate, rechecked automatically after edits, including containment and cutouts, with area shading, pair markers, and hover details through View > Overlap Check. Usage and limitations.
  • Cut simulator — Plate > Simulate Cutting replays the active plate in cut order: the torch traces each cut, rapid and pierce at adjustable feed, rapid and pierce settings, with play/pause, scrubbing, 1×–250× speed and previous/next part (Page Up/Down) and cutout (Ctrl+Left/Right) jumps. Parts the torch has not reached stay grayed. It and Calculate Cut Time use separate outside and hole feeds, skip etch-only contours like the CI Fiber post, and apply the chosen machine's acceleration and corner limits from Machine Configuration (placeholder values until you enter the controller's). Timing model.
  • CNC output — configurable lead-ins/outs and tabs, support-bed checks that tab only the parts the grid or slats can't hold level, contour editing, etched part-number labels with grain-based bend group letters so parts needing the same press brake angle correction can be formed together (label box), user-defined G-code variables ($name → #200+ machine variables), plugin post-processors (Cincinnati CL-707/800/900/940/CLX included). Pre-post verification checks overlaps, missing lead-ins, and rapid crossings, with explicit risk acknowledgment required to bypass warnings.

Requirements

  • Windows 10+ for the desktop app; the console, API, shared desktop library (OpenNest.Desktop) and most test projects build on Linux/macOS too. OpenNest.Avalonia is an early cross-platform desktop prototype, not yet a usable replacement.
  • .NET 8 SDK to build from source.

Prebuilt Windows downloads are on GitHub Releases, or build from source to run the latest code. Release ZIPs are self-contained: extract the entire archive into a new folder and run OpenNest.exe; no separate .NET installation is needed. For automatic updates, install with OpenNest-win-Setup.exe or extract OpenNest-win-Portable.zip instead: those copies download new full releases in the background, from GitHub Releases or, in Database mode, the nest server's mirror of them first (a hand-set feed URL overrides both) and restart only when you agree (auto-update). The plain ZIP does not auto-update; to update it, close OpenNest and extract the new release into a new folder. All nesting engines (Default, Rectangles, Irregular, Circles, Raster, FlatBar and the fill strategies) are built in; see nesting engines.

Build, Test, Run

git clone https://github.com/ajisaacs/OpenNest.git
cd OpenNest
dotnet build OpenNest.sln                                       # full solution (Windows)
dotnet test OpenNest.Engine.Tests/OpenNest.Engine.Tests.csproj  # cross-platform engine tests
dotnet test OpenNest.Tests/OpenNest.Tests.csproj                # core/engine/IO/API tests
dotnet test OpenNest.Desktop.Tests/OpenNest.Desktop.Tests.csproj # shared desktop library tests
dotnet test OpenNest.FrontEnd.Tests/OpenNest.FrontEnd.Tests.csproj # console/MCP/API integration
dotnet run --project OpenNest/OpenNest.csproj                   # desktop app (Windows)
dotnet run --project OpenNest.Avalonia/OpenNest.Avalonia.csproj # cross-platform prototype

OpenNest.WinForms.Tests (desktop-assembly tests) runs on Windows only; CI runs it on a GitHub-hosted Windows runner, and OpenNest.FrontEnd.Tests on both Linux and Windows, for every master push and pull request.

Quick start

  1. File > New
  2. Import DXFs via the CAD Converter (layer/color filtering, per-entity exclude and cut/etch/display-only roles, bend detection, G-code preview) or create built-in shapes
  3. Define plate size, material, quadrant, spacing
  4. Fill — the engine arranges parts
  5. Optionally add cut-off lines, apply Part Sequencing to order crossing cut-offs before their parts, then save .nest, export DXF or SVG, or post-process to G-code

Review part spacing before cutting, especially for interlocking pairs. See pair-spacing checks and current limitations.

Command-Line Interface

dotnet run --project OpenNest.Console -- part.dxf --size 60x120               # fill one plate
dotnet run --project OpenNest.Console -- part1.dxf part2.dxf --size 60x120 --autonest
dotnet run --project OpenNest.Console -- project.zip                          # re-fill a nest file
dotnet run --project OpenNest.Console -- job.nest --no-fill --plan-cutting --all-plates
Option What it does
--size WxL Set the plate size; required for DXF-only input.
--autonest Run validated whole-job nesting; one sheet unless --max-sheets <n> allows more.
--engine <name> Choose a whole-job engine with --autonest, or a fill strategy without it.
--quantity <n> Limit parts placed (0 means unlimited). With --autonest, nest n of each drawing instead of its required quantity.
--spacing <value> Override part spacing.
--template <path> Read plate defaults from a nest file.
--output <path> Set the output nest path.
--check-overlaps Check the result for overlaps.
--no-fill Keep a loaded nest as it is, for example to plan cutting or post it.
--plan-cutting Plan and apply cutting (part order, contours, entries, lead-ins); see cut planning.
--cutting-params <path> Cutting settings JSON for --plan-cutting; otherwise the plates' saved settings are used.
--post <name> Run a post-processor after nesting.
--no-save Skip saving the nest.
--allow-invalid Explicitly keep a representable invalid --autonest result; otherwise it is rejected.

Run dotnet run --project OpenNest.Console -- --help for the complete options and their defaults.

Project Structure

Project Purpose
OpenNest WinForms desktop app
OpenNest.Core Domain model, geometry, CNC primitives; material-overlap diagnostics
OpenNest.Engine Nesting algorithms and whole-job contracts
OpenNest.IO DXF/DWG/SVG, .nest, G-code, BOM I/O; CAD import
OpenNest.Console Headless batch nesting
OpenNest.Api / .Data Programmatic pipeline; machine & cutting-parameter data
OpenNest.Benchmark Head-to-head engine comparison
OpenNest.Mcp MCP server for AI tool integration
Posts/ Post-processor plugins (Cincinnati CL / CI Fiber lasers, Gravograph IS8000)
*.Tests Cross-platform suites; WinForms tests are Windows-only

Nesting Engines

Default compares the built-in Irregular, Rectangles, Circles and Raster engines and keeps the best valid whole-job layout. Other engines and plug-ins suit particular jobs; see which engine to use. Desktop Auto Nest, console autonest, MCP autonest, and the API share an independent validation pipeline, including for plug-ins. Automatic nesting and validation explains how callers handle invalid results.

File Format

.nest files are ZIP archives containing drawing programs, metadata, plates, and placements. Saved nests retain each part's lead-ins, lead-outs, tab gaps, and locks, plus the plate's cutting settings. Changing a drawing's geometry removes obsolete cutting paths from its parts; name, quantity, and color edits preserve them. See the file-format reference for compatibility and recovery behavior.

Supported Formats

Format Import Export
DXF Yes Yes
DWG Yes Yes (single drawings, CAD Converter)
SVG Yes Yes
Excel BOM Yes No
G-code No Yes (post-processors)
.nest Yes Yes

Designs from Boxes.py

Boxes.py generates around 200 laser-cut assemblies (finger-jointed boxes, trays, drawers, living-hinge boxes) from a few dimensions. It is a separate GPL project that OpenNest does not bundle, but its SVG output imports directly:

  1. Pick a design on the online generator, set its dimensions and thickness, set burn to 0 (OpenNest compensates for kerf itself), and save it as SVG.
  2. Open the SVG in the CAD Converter. The file states its size in millimeters, so there is no scale prompt.
  3. Click Separate to split the sheet into one drawing per piece (named from the design's labels where it has them), then delete the 100 mm burn-test strip.

A burn above 0 enlarges every part, leaves loops at inside corners and stops some outlines just short of closing; import drops the loops, closes those outlines and warns.

Keyboard Shortcuts

Ctrl+F fill area · F zoom to fit · Shift+wheel / middle-click rotate · X/Y push · arrows nudge by the offset increment (F5), or with its calculated distance by the selection's own size plus part spacing, landing tight with no push back (it always moves, even off the plate) · Shift+arrow push.

Status & License

Actively developed; core workflows run end-to-end from DXF import to G-code. Contributions welcome. MIT licensed — see LICENSE.

S
Description
Read-only backup mirror of https://github.com/ajisaacs/OpenNest (GitHub is the primary). Pulled hourly.
Readme MIT
18 MiB
0 Stars 1 Watchers 0 Forks
Languages
C# 98.5%
Python 1.1%
PowerShell 0.2%
Shell 0.1%