mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-06 16:55:47 -05:00
Tabs suit thin plate, but on anything thicker than 0.25 in the parts are too hard to break out of the sheet, and the Cutting Parameters dialog was one global set for every job. Its settings now live on the nest's machine thickness: leads on the existing Outside/Inside Cuts tabs, and lead-in angle rounding, tabs and pierce on a new Tabs & Pierce tab (ThicknessConfig.Cutting). In Database mode every workstation gets the same settings through the shared machine. The dialog and the Place Lead-in panel say what they edit, and save back to that thickness (MachineCuttingDefaults.WriteTo, converted to the machine's units). A thickness with no Tabs & Pierce of its own, or a nest the machine has no thickness for, keeps this PC's settings as before. If the machine can't be saved (server offline, a conflict), the edit is kept on this PC for that job and the user is told. Machine Configuration can copy one thickness's Tabs & Pierce to thinner or thicker ones, so the 0.25 in rule takes a few clicks. An older desktop saving a shared machine would silently erase these settings, since it doesn't know them. Machine configuration classes now keep unknown fields, and the server refuses a machine save that leaves out a field the stored machine has a value for, telling the user to update OpenNest. The Plan Cutting status line now reports tabs from SupportTabs; since "Tab every part" was retired it always said off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
509 B
C#
14 lines
509 B
C#
namespace OpenNest.Data;
|
|
|
|
public class CutOffConfig
|
|
{
|
|
public double PartClearance { get; set; } = 0.02;
|
|
public double Overtravel { get; set; }
|
|
public double MinSegmentLength { get; set; } = 0.05;
|
|
public string Direction { get; set; } = "AwayFromOrigin";
|
|
|
|
/// <summary>Fields a newer OpenNest wrote, kept so saving here does not drop them.</summary>
|
|
[System.Text.Json.Serialization.JsonExtensionData]
|
|
public Dictionary<string, System.Text.Json.JsonElement>? Unknown { get; set; }
|
|
}
|