From abbe29e54421c136aa6eb4ef11935c70d818101a Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期五, 20 九月 2024 11:59:09 +0800
Subject: [PATCH] 属性修改

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs |   16 +++++++++++++---
 1 files changed, 13 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 2f4b20c..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;
@@ -78,5 +78,15 @@
             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