From 03da721341232b6054d5d25f94a3bd1014771805 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 23 九月 2024 13:19:01 +0800 Subject: [PATCH] 增加bimface 定位 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs index e913b65..c200425 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs @@ -1,4 +1,7 @@ -锘縩amespace HStation.WinFrmUI +锘縰sing DevExpress.Office.Utils; +using DevExpress.Xpo.Helpers; + +namespace HStation.WinFrmUI { public partial class XhsProjectSimulationBimfaceCtrl : DevExpress.XtraEditors.XtraUserControl { @@ -175,5 +178,33 @@ #endregion + #region 缂╂斁 + + /// <summary> + /// 缂╂斁鑷虫瀯浠� + /// </summary> + public async Task ZoomToComponent(string elementId) + { + await this.bimfaceInterop3dContainer1.ZoomToComponent(elementId); + } + + /// <summary> + /// 缂╂斁鑷抽�夋嫨鏋勪欢 + /// </summary> + public async Task ZoomToSelectedComponents() + { + await this.bimfaceInterop3dContainer1.ZoomToSelectedComponents(); + } + + /// <summary> + /// 缂╂斁鑷抽�夋嫨鏋勪欢 + /// </summary> + public async Task ZoomAndSelectComponents(List<string> elementIds) + { + await this.bimfaceInterop3dContainer1.ZoomAndSelectComponents(elementIds); + } + + #endregion + } } -- Gitblit v1.9.3