diff --git a/OpenNest.IO/NestFormat.cs b/OpenNest.IO/NestFormat.cs index 393fe00..6801a31 100644 --- a/OpenNest.IO/NestFormat.cs +++ b/OpenNest.IO/NestFormat.cs @@ -72,7 +72,7 @@ namespace OpenNest.IO public record SizeDto { public double Width { get; init; } - public double Height { get; init; } + public double Length { get; init; } } public record MaterialDto diff --git a/OpenNest.IO/NestReader.cs b/OpenNest.IO/NestReader.cs index a6b9745..5ce5715 100644 --- a/OpenNest.IO/NestReader.cs +++ b/OpenNest.IO/NestReader.cs @@ -113,7 +113,7 @@ namespace OpenNest.IO // Plate defaults var pd = dto.PlateDefaults; - nest.PlateDefaults.Size = new OpenNest.Geometry.Size(pd.Size.Width, pd.Size.Height); + nest.PlateDefaults.Size = new OpenNest.Geometry.Size(pd.Size.Width, pd.Size.Length); nest.PlateDefaults.Thickness = pd.Thickness; nest.PlateDefaults.Quadrant = pd.Quadrant; nest.PlateDefaults.PartSpacing = pd.PartSpacing; @@ -128,7 +128,7 @@ namespace OpenNest.IO foreach (var p in dto.Plates.OrderBy(p => p.Id)) { var plate = new Plate(); - plate.Size = new OpenNest.Geometry.Size(p.Size.Width, p.Size.Height); + plate.Size = new OpenNest.Geometry.Size(p.Size.Width, p.Size.Length); plate.Thickness = p.Thickness; plate.Quadrant = p.Quadrant; plate.Quantity = p.Quantity; diff --git a/OpenNest.IO/NestWriter.cs b/OpenNest.IO/NestWriter.cs index e7d6de0..842f825 100644 --- a/OpenNest.IO/NestWriter.cs +++ b/OpenNest.IO/NestWriter.cs @@ -82,7 +82,7 @@ namespace OpenNest.IO var pd = nest.PlateDefaults; return new PlateDefaultsDto { - Size = new SizeDto { Width = pd.Size.Width, Height = pd.Size.Height }, + Size = new SizeDto { Width = pd.Size.Width, Length = pd.Size.Height }, Thickness = pd.Thickness, Quadrant = pd.Quadrant, PartSpacing = pd.PartSpacing, @@ -161,7 +161,7 @@ namespace OpenNest.IO list.Add(new PlateDto { Id = i + 1, - Size = new SizeDto { Width = plate.Size.Width, Height = plate.Size.Height }, + Size = new SizeDto { Width = plate.Size.Width, Length = plate.Size.Height }, Thickness = plate.Thickness, Quadrant = plate.Quadrant, Quantity = plate.Quantity,