diff --git a/OpenNest.Avalonia/App.axaml.cs b/OpenNest.Avalonia/App.axaml.cs index 2c1597ab..5716015f 100644 --- a/OpenNest.Avalonia/App.axaml.cs +++ b/OpenNest.Avalonia/App.axaml.cs @@ -17,7 +17,10 @@ namespace OpenNest.Avalonia var args = desktop.Args ?? System.Array.Empty(); if (args.Length > 0) window.OpenNest(args[0]); - // --snapshot [plate]: render the window to an image and exit, for checking the drawing. + // --auto-nest: run Auto Nest on the opened nest (with --snapshot, before rendering). + if (System.Array.IndexOf(args, "--auto-nest") >= 0) + window.AutoNestOnOpen(); + // --snapshot [plate]: render the window to an image (status line in .txt) and exit. var snapshot = System.Array.IndexOf(args, "--snapshot"); if (snapshot >= 0 && snapshot + 1 < args.Length) window.SaveSnapshotAndClose(args[snapshot + 1], diff --git a/OpenNest.Avalonia/MainWindow.axaml b/OpenNest.Avalonia/MainWindow.axaml index e20918a4..ad0b7284 100644 --- a/OpenNest.Avalonia/MainWindow.axaml +++ b/OpenNest.Avalonia/MainWindow.axaml @@ -8,10 +8,13 @@ - + + + + @@ -21,10 +24,11 @@ -