mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-23 12:27:41 -05:00
Replace the on/off CuttingParameters.EtchPartLabels with a PartLabelMode (Off, PartNumber, PartNumberAndBendGroups), chosen from a dropdown in the Cutting panel and kept per machine thickness. PartNumber etches only the drawing name; the full mode keeps the 1234-AB label. Settings saved with the old boolean still load: true reads as PartNumberAndBendGroups and false or a missing key as Off, in the cutting parameter DTO and the machine thickness config. The old key is never written again. The plan fingerprint keeps the old full-label token and adds one for the number-only mode. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
494 B
C#
16 lines
494 B
C#
namespace OpenNest.CNC.CuttingStrategy
|
|
{
|
|
/// <summary>What Plan Cutting etches in each part's label box (see docs/label-box.md).</summary>
|
|
public enum PartLabelMode
|
|
{
|
|
/// <summary>Nothing is etched.</summary>
|
|
Off,
|
|
|
|
/// <summary>The drawing name only, for example <c>1234</c>.</summary>
|
|
PartNumber,
|
|
|
|
/// <summary>The drawing name and the bend groups of its bends, for example <c>1234-AB</c>.</summary>
|
|
PartNumberAndBendGroups,
|
|
}
|
|
}
|