lixiaojun
2024-09-23 03da721341232b6054d5d25f94a3bd1014771805
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
@@ -1,4 +1,7 @@
namespace HStation.WinFrmUI
using 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
    }
}