From cc38934d109a60fa3277714c078bb5e24d2eda14 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 30 Apr 2026 12:06:21 -0400 Subject: [PATCH] feat(ui): wire TitleBlockEntityIds through FileListItem and CadConverterForm Co-Authored-By: Claude Opus 4.6 --- OpenNest/Controls/FileListControl.cs | 1 + OpenNest/Forms/CadConverterForm.cs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/OpenNest/Controls/FileListControl.cs b/OpenNest/Controls/FileListControl.cs index 49e9d9c..a299700 100644 --- a/OpenNest/Controls/FileListControl.cs +++ b/OpenNest/Controls/FileListControl.cs @@ -20,6 +20,7 @@ namespace OpenNest.Controls public List OriginalEntities { get; set; } public List Bends { get; set; } = new(); public HashSet SuppressedEntityIds { get; set; } + public HashSet TitleBlockEntityIds { get; set; } public Box Bounds { get; set; } public int EntityCount { get; set; } public List Texts { get; set; } = new(); diff --git a/OpenNest/Forms/CadConverterForm.cs b/OpenNest/Forms/CadConverterForm.cs index 33a9e90..6aad054 100644 --- a/OpenNest/Forms/CadConverterForm.cs +++ b/OpenNest/Forms/CadConverterForm.cs @@ -94,8 +94,16 @@ namespace OpenNest.Forms Bounds = result.Bounds, EntityCount = result.Entities.Count, Texts = ExtractTexts(result.Document), + TitleBlockEntityIds = result.TitleBlockEntityIds, }; + if (result.TitleBlockEntityIds != null && result.TitleBlockEntityIds.Count > 0) + { + item.SuppressedEntityIds ??= new HashSet(); + foreach (var id in result.TitleBlockEntityIds) + item.SuppressedEntityIds.Add(id); + } + if (InvokeRequired) BeginInvoke((Action)(() => fileList.AddItem(item))); else