using HStation.RevitDev.Model.AttributeClass;
|
using HStation.RevitDev.Model.ModelEnum;
|
using System.Collections.Generic;
|
using System.Linq;
|
|
namespace HStation.Model
|
{
|
/// <summary>
|
/// 扩散器
|
/// </summary>
|
///
|
[ExportType(ExportType.EFT_Shower)]
|
public class RevitEmitter : RevitParter, IRevitEmitter
|
{
|
/// <summary>
|
///
|
/// </summary>
|
|
public RevitEmitter() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public RevitEmitter(RevitEmitter rhs) : base(rhs)
|
{
|
this.ModelType = rhs.ModelType;
|
this.FlowCoefficient = rhs.FlowCoefficient;
|
this.EmitterType = rhs.EmitterType;
|
this.PropValueList = rhs.PropValueList?.Select(x => new RevitPropValue(x)).ToList();
|
this.BoundingBox = rhs.BoundingBox;
|
}
|
|
/// <summary>
|
/// 型号
|
/// </summary>
|
[Parameter("型号")]
|
public string ModelType { get; set; }
|
|
/// <summary>
|
/// 流量系数
|
/// </summary>
|
[Parameter("流量系数")]
|
public double FlowCoefficient { get; set; }
|
|
/// <summary>
|
/// 扩散器类型
|
/// </summary>
|
[Parameter("扩散器类型")]
|
public string EmitterType { get; set; }
|
|
/// <summary>
|
/// 属性值列表
|
/// </summary>
|
[Parameter("属性值列表")]
|
public List<RevitPropValue> PropValueList { get; set; }
|
|
/// <summary>
|
/// 位置
|
/// </summary>
|
[Parameter("位置")]
|
public RevitBoundingBox BoundingBox { get; set; }
|
}
|
}
|