lixiaojun
2024-09-20 abbe29e54421c136aa6eb4ef11935c70d818101a
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
@@ -75,6 +75,8 @@
            this.ClickParterEvent?.Invoke(obj.ObjectId);
        }
        #region 构件的显示与隐藏
        /// <summary>
        /// 显示构件
        /// </summary>
@@ -104,6 +106,10 @@
            await this.bimfaceInterop3dContainer1.ShowAllComponents();
        }
        #endregion
        #region 构件的半透明与取消
        /// <summary>
        /// 半透明构件
        /// </summary>
@@ -124,5 +130,50 @@
            await this.bimfaceInterop3dContainer1.OpaqueComponents(elementIds);
        }
        #endregion
        #region 构件的选中与取消
        /// <summary>
        /// 设置选择的构件
        /// </summary>
        /// <returns></returns>
        public async Task SetSelectedComponents(List<string> elements)
        {
            await this.bimfaceInterop3dContainer1.SetSelectedComponents(elements);
        }
        /// <summary>
        /// 增加选择的构件
        /// </summary>
        /// <param name="elements"></param>
        /// <returns></returns>
        public async Task AddSelectedComponents(List<string> elements)
        {
            await this.bimfaceInterop3dContainer1.AddSelectedComponents(elements);
        }
        /// <summary>
        /// 移除选择的构件
        /// </summary>
        /// <param name="elements"></param>
        /// <returns></returns>
        public async Task RemoveSelectedComponents(List<string> elements)
        {
            await this.bimfaceInterop3dContainer1.RemoveSelectedComponents(elements);
        }
        /// <summary>
        /// 清除选择的构件
        /// </summary>
        /// <param name="elements"></param>
        /// <returns></returns>
        public async Task ClearSelectedComponents()
        {
            await this.bimfaceInterop3dContainer1.ClearSelectedComponents();
        }
        #endregion
    }
}