From 651d1f87d2e0e26021c20f3667e1db7b1349b478 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期一, 23 九月 2024 10:27:44 +0800 Subject: [PATCH] 冲突缺少文件补充 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs | 31 ++++++++++++++++++++++++++++--- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs index 3050540..4e80934 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs @@ -25,20 +25,20 @@ //椤甸潰鍔犺浇瀹屾垚鍚庤Е鍙� private async void BimfaceInterop3dContainer1_LoadCompletedEvent() { - var projectSite = await new BLL.XhsProjectSiteStd().GetDefaultByProjectID(_projectId); + var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_projectId); if (projectSite == null) { return; } - var relation = await new Yw.BLL.BimfaceFileRelationStd() + var relation = await BLLFactory<Yw.BLL.BimfaceFileRelation>.Instance .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, Yw.Bimface.Purpose.Simulation); if (relation == null) { return; } - var bimfaceFile = await new Yw.BLL.BimfaceFileStd().GetByID(relation.BimfaceFileID); + var bimfaceFile = await BLLFactory<Yw.BLL.BimfaceFile>.Instance.GetByID(relation.BimfaceFileID); if (bimfaceFile == null) { return; @@ -63,5 +63,30 @@ this.ClickParterEvent?.Invoke(obj.ObjectId); } + public async Task HideComponents(List<string> elementIds) + { + await this.bimfaceInterop3dContainer1.HideComponents(elementIds); + } + + public async Task ShowComponents(List<string> elementIds) + { + await this.bimfaceInterop3dContainer1.ShowComponents(elementIds); + } + + public async Task ShowAllComponents() + { + await this.bimfaceInterop3dContainer1.ShowAllComponents(); + } + + public async Task TranslucentComponents(List<string> elementIds) + { + await this.bimfaceInterop3dContainer1.TranslucentComponents(elementIds); + } + + public async Task OpaqueComponents(List<string> elementIds) + { + await this.bimfaceInterop3dContainer1.OpaqueComponents(elementIds); + } + } } -- Gitblit v1.9.3