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:
@@ -133,7 +133,7 @@ namespace OpenNest.IO.Bending
|
|||||||
{
|
{
|
||||||
return document.Entities
|
return document.Entities
|
||||||
.OfType<ACadSharp.Entities.Line>()
|
.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?.Contains("CENTER") == true
|
||||||
|| l.LineType?.Name == "CENTERX2"))
|
|| l.LineType?.Name == "CENTERX2"))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user