Compare commits

...

3 Commits

Author SHA1 Message Date
aj da4d3228b0 revert: remove degree symbol fix (moved to caller)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:31:50 -05:00
aj 3c1700c480 fix: repair double-encoded degree symbol in DXF output
ACadSharp misreads UTF-8 degree symbol (C2 B0) as two ANSI_1252
characters (°) then writes that back out. Post-process the saved
DXF to replace ° with ° so bend notes display correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:28:38 -05:00
aj f2f50f9914 fix: set bend line entity color to ByLayer
Bend lines retained their original explicit color (white) from
SolidWorks after being moved to the BEND layer. Now set to ByLayer
so they inherit the layer's yellow color.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:51:54 -05:00
+2 -1
View File
@@ -100,10 +100,11 @@ namespace EtchBendLines
var doc = LoadDocument(filePath);
var bends = ExtractBends(doc);
// Ensure all bend lines are on the BEND layer
// Ensure all bend lines are on the BEND layer with ByLayer color
foreach (var bend in bends)
{
bend.Line.Layer = BendLayer;
bend.Line.Color = Color.ByLayer;
}
var upBends = bends.Where(b => b.Direction == BendDirection.Up);