mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-16 19:25:34 -05:00
fix(bending): detect bend lines on layer "0" in addition to "BEND"
SolidWorks drawings sometimes place centerline bend markers on the default layer instead of a dedicated BEND layer. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
29c2872819
commit
b03b3eb4d9
1 file changed
+1
-1
@@ -133,7 +133,7 @@ namespace OpenNest.IO.Bending
|
||||
{
|
||||
return document.Entities
|
||||
.OfType<ACadSharp.Entities.Line>()
|
||||
.Where(l => l.Layer?.Name == "BEND"
|
||||
.Where(l => (l.Layer?.Name == "BEND" || l.Layer?.Name == "0")
|
||||
&& (l.LineType?.Name?.Contains("CENTER") == true
|
||||
|| l.LineType?.Name == "CENTERX2"))
|
||||
.ToList();
|
||||
|
||||
Reference in new issue
Block a user