lixiaojun
2024-11-17 c390474980cea47189c1fcc962315b9867c9e2ce
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
@@ -373,11 +373,19 @@
        /// </summary>
        public async Task OverrideComponentsColor(List<string> elementIds, string color, double transparency)
        {
            if (_bimfaceInteropContainer == null)
            await _bimfaceInteropContainer?.OverrideComponentsColor(elementIds, color, transparency);
        }
        /// <summary>
        /// 设置强调构件
        /// </summary>
        public async Task OverrideComponentsColor(string elementId, string color, double transparency)
        {
            if (string.IsNullOrEmpty(elementId))
            {
                return;
            }
            await _bimfaceInteropContainer.OverrideComponentsColor(elementIds, color, transparency);
            await _bimfaceInteropContainer.OverrideComponentsColor(new List<string>() { elementId }, color, transparency);
        }
        /// <summary>
@@ -385,11 +393,19 @@
        /// </summary>
        public async Task RestoreComponentsColor(List<string> elementIds)
        {
            if (_bimfaceInteropContainer == null)
            await _bimfaceInteropContainer?.RestoreComponentsColor(elementIds);
        }
        /// <summary>
        /// 恢复构件颜色
        /// </summary>
        public async Task RestoreComponentsColor(string elementId)
        {
            if (string.IsNullOrEmpty(elementId))
            {
                return;
            }
            await _bimfaceInteropContainer.RestoreComponentsColor(elementIds);
            await _bimfaceInteropContainer?.RestoreComponentsColor(new List<string>() { elementId });
        }
        #endregion
@@ -473,6 +489,22 @@
        public async Task SetLogicMarkLeadLabels(List<LogicMarkLeadLabel> obj)
        {
            await _bimfaceInteropContainer?.SetLogicMarkLeadLabels(obj);
        }
        /// <summary>
        /// 更新业务标注引线标签
        /// </summary>
        public async Task UpdateLogicMarkLeadLabel(LogicMarkLeadLabel obj)
        {
            await _bimfaceInteropContainer?.UpdateLogicMarkLeadLabel(obj);
        }
        /// <summary>
        /// 更新业务标注引线标签
        /// </summary>
        public async Task UpdateLogicMarkLeadLabels(List<LogicMarkLeadLabel> obj)
        {
            await _bimfaceInteropContainer?.UpdateLogicMarkLeadLabels(obj);
        }
        /// <summary>
@@ -607,7 +639,25 @@
        #endregion
        #region 业务监测点
        /// <summary>
        /// 设置业务监测点
        /// </summary>
        public async Task SetLogicMonitors(List<LogicMonitor> obj)
        {
            await _bimfaceInteropContainer?.SetLogicMonitors(obj);
        }
        /// <summary>
        /// 清除业务监测点
        /// </summary>
        public async Task ClearLogicMonitors()
        {
            await _bimfaceInteropContainer?.ClearLogicMonitors();
        }
        #endregion
    }
}