Files
OpenNest/OpenNest.Core/CNC/CuttingStrategy/PartLabelMode.cs
T
ajandClaude Sonnet 5.5 b227321aee feat(labels): etch the part number alone or with its bend groups
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>
2026-11-22 18:09:17 -05:00

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,
}
}