mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-06 05:55:43 -05:00
fix(console): give the DXF-only plate a quantity of 1
LoadOrCreateNest built the DXF-only plate with `new Plate`, leaving Quantity at 0, so results reported "Parts placed: 0" and 0% weighted utilization, and drawings' nested quantities stayed at zero. Build it through Nest.CreatePlate as the desktop does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
61ad85768d
commit
13d75854c3
2 files changed
+18
-2
No files matched your search
@@ -372,9 +372,11 @@ static class NestConsole
|
||||
return null;
|
||||
}
|
||||
|
||||
// Build the plate as the desktop does: Quantity = 1 so part counts and the
|
||||
// drawings' nested quantities include it.
|
||||
var newNest = new Nest { Name = "DXF Import" };
|
||||
var plate = new Plate { Size = options.PlateSize.Value };
|
||||
newNest.Plates.Add(plate);
|
||||
newNest.PlateDefaults.Size = options.PlateSize.Value;
|
||||
newNest.CreatePlate();
|
||||
|
||||
foreach (var dxf in dxfFiles)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user