feat(ui): wire TitleBlockEntityIds through FileListItem and CadConverterForm

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-30 12:06:21 -04:00
parent 4f849f1c06
commit cc38934d10
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ namespace OpenNest.Controls
public List<Entity> OriginalEntities { get; set; }
public List<Bend> Bends { get; set; } = new();
public HashSet<Guid> SuppressedEntityIds { get; set; }
public HashSet<Guid> TitleBlockEntityIds { get; set; }
public Box Bounds { get; set; }
public int EntityCount { get; set; }
public List<CadText> Texts { get; set; } = new();
+8
View File
@@ -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<Guid>();
foreach (var id in result.TitleBlockEntityIds)
item.SuppressedEntityIds.Add(id);
}
if (InvokeRequired)
BeginInvoke((Action)(() => fileList.AddItem(item)));
else