恢复 Task.Run 包装 ExportSectionBoxFromActiveView,修复大模型导出性能回归
- 树遍历(GetObjectsAndHiddenItems)在后台线程执行,恢复 4月15日版本的性能 - 导出阶段 NwdExportHelper 内部 Dispatcher.Invoke 回 UI 线程
This commit is contained in:
parent
36a5944548
commit
b34d17f2d1
@ -1948,8 +1948,11 @@ namespace NavisworksTransport.UI.WPF.ViewModels
|
||||
|
||||
// 委托给业务层:验证剖面盒 → 遍历模型树 → 导出
|
||||
CurrentOperationText = "正在查找剖面盒内的对象...";
|
||||
var exporter = new SectionBoxExporter();
|
||||
var result = exporter.ExportSectionBoxFromActiveView(document, saveFilePath);
|
||||
var result = await Task.Run(() =>
|
||||
{
|
||||
var exporter = new SectionBoxExporter();
|
||||
return exporter.ExportSectionBoxFromActiveView(document, saveFilePath);
|
||||
});
|
||||
|
||||
if (result.Success)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user