diff --git a/src/UI/WPF/ViewModels/LayerManagementViewModel.cs b/src/UI/WPF/ViewModels/LayerManagementViewModel.cs index 2f977da..15aad49 100644 --- a/src/UI/WPF/ViewModels/LayerManagementViewModel.cs +++ b/src/UI/WPF/ViewModels/LayerManagementViewModel.cs @@ -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) {