From d7cc08dff7560897b2d37236272f86b5d36751da Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 19 Mar 2026 08:29:46 -0400 Subject: [PATCH] refactor: rename .opnest file extension to .nest Co-Authored-By: Claude Sonnet 4.6 --- OpenNest.Console/Program.cs | 10 +++++----- OpenNest.IO/NestFormat.cs | 4 ++-- OpenNest.Mcp/Tools/InputTools.cs | 4 ++-- OpenNest.Mcp/Tools/TestTools.cs | 4 ++-- OpenNest.Training/Program.cs | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/OpenNest.Console/Program.cs b/OpenNest.Console/Program.cs index a4f750a..a7cbf7b 100644 --- a/OpenNest.Console/Program.cs +++ b/OpenNest.Console/Program.cs @@ -191,7 +191,7 @@ static class NestConsole // DXF-only mode: create a fresh nest. if (dxfFiles.Count == 0) { - Console.Error.WriteLine("Error: no nest (.opnest) or DXF (.dxf) files specified"); + Console.Error.WriteLine("Error: no nest (.nest) or DXF (.dxf) files specified"); return null; } @@ -387,12 +387,12 @@ static class NestConsole Console.Error.WriteLine("Usage: OpenNest.Console [options]"); Console.Error.WriteLine(); Console.Error.WriteLine("Arguments:"); - Console.Error.WriteLine(" input-files One or more .opnest nest files or .dxf drawing files"); + Console.Error.WriteLine(" input-files One or more .nest nest files or .dxf drawing files"); Console.Error.WriteLine(); Console.Error.WriteLine("Modes:"); - Console.Error.WriteLine(" Load nest and fill (existing behavior)"); + Console.Error.WriteLine(" Load nest and fill (existing behavior)"); Console.Error.WriteLine(" --size WxL Import DXF, create plate, and fill"); - Console.Error.WriteLine(" Load nest and add imported DXF drawings"); + Console.Error.WriteLine(" Load nest and add imported DXF drawings"); Console.Error.WriteLine(); Console.Error.WriteLine("Options:"); Console.Error.WriteLine(" --drawing Drawing name to fill with (default: first drawing)"); @@ -400,7 +400,7 @@ static class NestConsole Console.Error.WriteLine(" --quantity Max parts to place (default: 0 = unlimited)"); Console.Error.WriteLine(" --spacing Override part spacing"); Console.Error.WriteLine(" --size Override plate size (e.g. 60x120); required for DXF-only mode"); - Console.Error.WriteLine(" --output Output nest file path (default: -result.opnest)"); + Console.Error.WriteLine(" --output Output nest file path (default: -result.nest)"); Console.Error.WriteLine(" --template Nest template for plate defaults (thickness, quadrant, material, spacing)"); Console.Error.WriteLine(" --autonest Use NFP-based mixed-part autonesting instead of linear fill"); Console.Error.WriteLine(" --keep-parts Don't clear existing parts before filling"); diff --git a/OpenNest.IO/NestFormat.cs b/OpenNest.IO/NestFormat.cs index dd7e05d..7cdf4f3 100644 --- a/OpenNest.IO/NestFormat.cs +++ b/OpenNest.IO/NestFormat.cs @@ -5,8 +5,8 @@ namespace OpenNest.IO { public static class NestFormat { - public const string FileExtension = ".opnest"; - public const string FileFilter = "Nest Files (*.opnest)|*.opnest"; + public const string FileExtension = ".nest"; + public const string FileFilter = "Nest Files (*.nest)|*.nest"; public static readonly JsonSerializerOptions JsonOptions = new() { diff --git a/OpenNest.Mcp/Tools/InputTools.cs b/OpenNest.Mcp/Tools/InputTools.cs index 95c1329..55d4d4b 100644 --- a/OpenNest.Mcp/Tools/InputTools.cs +++ b/OpenNest.Mcp/Tools/InputTools.cs @@ -21,8 +21,8 @@ namespace OpenNest.Mcp.Tools } [McpServerTool(Name = "load_nest")] - [Description("Load an .opnest file into the session. Returns a summary of plates, parts, and drawings.")] - public string LoadNest([Description("Absolute path to the .opnest file")] string path) + [Description("Load a .nest file into the session. Returns a summary of plates, parts, and drawings.")] + public string LoadNest([Description("Absolute path to the .nest file")] string path) { if (!File.Exists(path)) return $"Error: file not found: {path}"; diff --git a/OpenNest.Mcp/Tools/TestTools.cs b/OpenNest.Mcp/Tools/TestTools.cs index afea628..bcaf299 100644 --- a/OpenNest.Mcp/Tools/TestTools.cs +++ b/OpenNest.Mcp/Tools/TestTools.cs @@ -17,10 +17,10 @@ namespace OpenNest.Mcp.Tools [McpServerTool(Name = "test_engine")] [Description("Build and run the nesting engine against a nest file. Returns fill results and a debug log file path for grepping. Use this to test engine changes without restarting the MCP server.")] public string TestEngine( - [Description("Path to the nest .opnest file")] string nestFile = @"C:\Users\AJ\Desktop\4980 A24 PT02 60x120 45pcs v2.opnest", + [Description("Path to the nest .nest file")] string nestFile = @"C:\Users\AJ\Desktop\4980 A24 PT02 60x120 45pcs v2.nest", [Description("Drawing name to fill with (default: first drawing)")] string drawingName = null, [Description("Plate index to fill (default: 0)")] int plateIndex = 0, - [Description("Output nest file path (default: -result.opnest)")] string outputFile = null) + [Description("Output nest file path (default: -result.nest)")] string outputFile = null) { if (!File.Exists(nestFile)) return $"Error: nest file not found: {nestFile}"; diff --git a/OpenNest.Training/Program.cs b/OpenNest.Training/Program.cs index eecc276..75f94b6 100644 --- a/OpenNest.Training/Program.cs +++ b/OpenNest.Training/Program.cs @@ -299,7 +299,7 @@ void PrintUsage() Console.Error.WriteLine("Options:"); Console.Error.WriteLine(" --spacing Part spacing (default: 0.5)"); Console.Error.WriteLine(" --db SQLite database path (default: OpenNestTraining.db)"); - Console.Error.WriteLine(" --save-nests Directory to save individual .opnest nests for each winner"); + Console.Error.WriteLine(" --save-nests Directory to save individual .nest nests for each winner"); Console.Error.WriteLine(" --template Nest template (.nstdot) for plate defaults"); Console.Error.WriteLine(" -h, --help Show this help"); }