From ee2ce117fc26d2878e019ac78e562134024d60ab Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期一, 26 八月 2024 13:49:54 +0800
Subject: [PATCH] 增加bimface 显示隐藏功能

---
 WinFrmUI/Yw.WinFrmUI.Bimface.Core/01-interop/01-interop3d/BimfaceInterop3dContainer.cs |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Bimface.Core/01-interop/01-interop3d/BimfaceInterop3dContainer.cs b/WinFrmUI/Yw.WinFrmUI.Bimface.Core/01-interop/01-interop3d/BimfaceInterop3dContainer.cs
index b2858f3..9721056 100644
--- a/WinFrmUI/Yw.WinFrmUI.Bimface.Core/01-interop/01-interop3d/BimfaceInterop3dContainer.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Bimface.Core/01-interop/01-interop3d/BimfaceInterop3dContainer.cs
@@ -1,4 +1,7 @@
 锘�
+
+using DevExpress.XtraDiagram.Base;
+
 namespace Yw.WinFrmUI
 {
     public partial class BimfaceInterop3dContainer : UserControl, IBimfaceInterop3dContainer
@@ -131,5 +134,55 @@
         }
 
 
+
+        #region 鏋勪欢鏄鹃殣
+
+        /// <summary>
+        /// 鏄剧ず鏋勪欢
+        /// </summary>
+        /// <param name="ids">鏋勪欢id鍒楄〃</param>
+        public async Task ShowComponents(List<string> ids)
+        {
+            if (ids == null || ids.Count < 1)
+            {
+                return;
+            }
+            if (!_isViewInitialized)
+            {
+                return;
+            }
+            await this.webViewControl1.EvaluateScriptAsync("showComponents", ids);
+        }
+
+        /// <summary>
+        /// 闅愯棌鏋勪欢
+        /// </summary>
+        /// <param name="ids">鏋勪欢id鍒楄〃</param>
+        public async Task HideComponents(List<string> ids)
+        {
+            if (ids == null || ids.Count < 1)
+            {
+                return;
+            }
+            if (!_isViewInitialized)
+            {
+                return;
+            }
+            await this.webViewControl1.EvaluateScriptAsync("hideComponents", ids);
+        }
+
+        /// <summary>
+        /// 鏄剧ず鎵�鏈夋瀯浠�
+        /// </summary>
+        public async Task ShowAllComponents()
+        {
+            if (!_isViewInitialized)
+            {
+                return;
+            }
+            await this.webViewControl1.EvaluateScriptAsync("showAllComponents()");
+        }
+
+        #endregion
     }
 }

--
Gitblit v1.9.3