note detection v2

This commit is contained in:
2025-07-31 10:03:48 +09:00
parent 0278688b28
commit 9c76b624bf
2 changed files with 181 additions and 183 deletions

View File

@@ -340,6 +340,14 @@ namespace DwgExtractorManual.Models
worksheet.Cells[row, 5] = fileName ?? "";
worksheet.Cells[row, 6] = noteEntity.Text ?? "";
// "NOTE" 타입인 경우 행 배경색 변경
if (noteEntity.Type == "Note")
{
Excel.Range noteRowRange = worksheet.Range[worksheet.Cells[row, 1], worksheet.Cells[row, 6]];
noteRowRange.Interior.Color = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.LightYellow);
noteRowRange.Font.Bold = true;
}
Debug.WriteLine($"[DEBUG] Excel 기록: Row {row}, Order {noteEntity.SortOrder}, Type {noteEntity.Type}, Pos({noteEntity.X:F1},{noteEntity.Y:F1}), Text: '{noteEntity.Text}'");
row++;
}