feat(ui): wire TitleBlockEntityIds through FileListItem and CadConverterForm
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user