using HStation.RevitDev.Model.AttributeClass;
using HStation.RevitDev.Model.ModelEnum;
using System.Collections.Generic;
using System.Linq;
namespace HStation.Model
{
///
/// 阀门
///
///
[ExportType(ExportType.EFT_Valve)]
public class RevitValve : RevitParter, IRevitValve
{
///
///
///
public RevitValve() { }
///
///
///
public RevitValve(RevitValve rhs) : base(rhs)
{
this.ModelType = rhs.ModelType;
this.StartCode = rhs.StartCode;
this.EndCode = rhs.EndCode;
this.Diameter = rhs.Diameter;
this.MinorLoss = rhs.MinorLoss;
this.ValveType = rhs.ValveType;
this.ValveSetting = rhs.ValveSetting;
this.PropValueList = rhs.PropValueList?.Select(x => new RevitPropValue(x)).ToList();
this.BoundingBox = rhs.BoundingBox;
}
///
/// 型号
///
[Parameter("型号")]
public string ModelType { get; set; }
///
/// 上游节点
///
[Parameter("上游节点")]
public string StartCode { get; set; }
///
/// 下游节点
///
[Parameter("下游节点")]
public string EndCode { get; set; }
///
/// 直径
///
[Parameter("直径")]
public double Diameter { get; set; }
///
/// 局部阻力系数
///
[Parameter("局部阻力系数")]
public double MinorLoss { get; set; }
///
/// 阀门类型
///
[Parameter("阀门类型")]
public string ValveType { get; set; }
///
/// 阀门设置
///
[Parameter("阀门设置")]
public string ValveSetting { get; set; }
///
/// 属性值列表
///
[Parameter("属性值列表")]
public List PropValueList { get; set; }
///
/// 位置
///
[Parameter("位置")]
public RevitBoundingBox BoundingBox { get; set; }
}
}