| | |
| | | /// </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> |
| | |
| | | /// </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 |