diff --git a/OpenNest.IO/DxfImporter.cs b/OpenNest.IO/DxfImporter.cs index 96bdb7c..8bc8741 100644 --- a/OpenNest.IO/DxfImporter.cs +++ b/OpenNest.IO/DxfImporter.cs @@ -24,6 +24,11 @@ namespace OpenNest.IO foreach (var entity in doc.Entities) { + // Skip bend line entities — they are converted to Bend objects + // separately via bend detection, not cut geometry. + if (IsBendLayer(entity.Layer?.Name)) + continue; + switch (entity) { case ACadSharp.Entities.Line line: @@ -131,5 +136,10 @@ namespace OpenNest.IO return success; } + + private static bool IsBendLayer(string layerName) + { + return string.Equals(layerName, "BEND", System.StringComparison.OrdinalIgnoreCase); + } } }