# 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.
## 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](docs/svg-import-export.md). - **Nesting** — automatic multi-plate/multi-material jobs, interlocking pair evaluation, and built-in or plug-in engines. [Choose an engine](docs/nesting-engines.md). - **Plate operations** — manual sheet cut-offs, [plate- or nest-wide automatic scrap cutoffs](docs/automatic-scrap-cutoffs.md) 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](docs/geometry/visual-overlap-check.md). - **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, a click on the plate to jump to when the torch passes there, 1×–250× speed and previous/next part (Page Up/Down) and cutout (Ctrl+Left/Right) jumps. Parts the torch has not reached stay grayed. A heat map (Heat: Now or Peak so far) estimates how heat builds up in the sheet as the torch cuts, cooled by air and the support slats or grid, with the temperature rise under the cursor; the heat input is set on the Settings tab. It is uncalibrated, so use it to compare cut orders of one plate, not as real temperatures ([heat model](docs/plate-heat-map.md)). 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](docs/cut-time-estimates.md). - **CNC output** — configurable lead-ins/outs and tabs, [support-bed checks that tab only the parts the grid or slats can't hold level](docs/support-tabs.md), 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](docs/label-box.md)), user-defined G-code variables (`$name` → `#200+` machine variables), plugin post-processors (Cincinnati CL-707/800/900/940/CLX included). [Pre-post verification](docs/post-verification.md) 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](https://dotnet.microsoft.com/download/dotnet/8.0) to build from source. Prebuilt Windows downloads are on [GitHub Releases](https://github.com/ajisaacs/OpenNest/releases), or [build from source](#build-test-run) 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](docs/auto-update.md)). 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](docs/nesting-engines.md). ## Build, Test, Run ```bash 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](docs/geometry/pair-spacing.md). ## Command-Line Interface ```bash 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