feat: add ActionLeadIn for manual lead-in placement on part contours

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-30 13:47:22 -04:00
parent 21321740d6
commit 5307c5c85a
4 changed files with 366 additions and 4 deletions
+20
View File
@@ -738,6 +738,26 @@ namespace OpenNest.Forms
PlateView.Invalidate();
}
private void PlaceLeadIn_Click(object sender, EventArgs e)
{
if (PlateView?.Plate == null)
return;
var plate = PlateView.Plate;
// Ensure cutting parameters are configured
if (plate.CuttingParameters == null)
{
using var form = new CuttingParametersForm();
if (form.ShowDialog(this) != DialogResult.OK)
return;
plate.CuttingParameters = form.BuildParameters();
}
PlateView.SetAction(typeof(Actions.ActionLeadIn));
}
private void ImportDrawings_Click(object sender, EventArgs e)
{
Import();