refactor: move material and thickness from Plate to Nest
Material and thickness are properties of the nest (all plates share the same material/gauge), not individual plates. This moves them to the Nest class, removes them from Plate and PlateSettings, and updates the UI so EditNestInfoForm has a material field while EditPlateForm no longer shows thickness. The nest file format gains top-level thickness/material fields with backward-compatible reading from PlateDefaults for old files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -279,10 +279,9 @@ static class NestConsole
|
||||
return;
|
||||
}
|
||||
|
||||
var templatePlate = new NestReader(options.TemplateFile).Read().PlateDefaults.CreateNew();
|
||||
plate.Thickness = templatePlate.Thickness;
|
||||
var templateNest = new NestReader(options.TemplateFile).Read();
|
||||
var templatePlate = templateNest.PlateDefaults.CreateNew();
|
||||
plate.Quadrant = templatePlate.Quadrant;
|
||||
plate.Material = templatePlate.Material;
|
||||
plate.EdgeSpacing = templatePlate.EdgeSpacing;
|
||||
plate.PartSpacing = templatePlate.PartSpacing;
|
||||
Console.WriteLine($"Template: {options.TemplateFile}");
|
||||
|
||||
Reference in New Issue
Block a user