using HStation.RevitDev.Model.AttributeClass; using HStation.RevitDev.Model.Enum; namespace HStation.Model { /// /// 管道 /// /// [ExportType(ExportFamilyType.EFT_Pipe)] public class RevitPipe : RevitParter, IRevitPipe { /// /// /// public RevitPipe() { } /// /// /// public RevitPipe(RevitPipe rhs) : base(rhs) { this.ModelType = rhs.ModelType; this.StartCode = rhs.StartCode; this.EndCode = rhs.EndCode; this.Diameter = rhs.Diameter; this.Length = rhs.Length; this.Roughness = rhs.Roughness; this.MinorLoss = rhs.MinorLoss; this.PipeStatus = rhs.PipeStatus; 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; } /// /// 直径(内径) mm /// [Parameter("直径(内径)")] public double Diameter { get; set; } /// /// 长度 /// [Parameter("长度")] public double Length { get; set; } /// /// 粗糙系数 /// [Parameter("粗糙系数")] public double Roughness { get; set; } /// /// 局部阻力系数 /// [Parameter("局部阻力系数")] public double MinorLoss { get; set; } /// /// 管道状态 /// [Parameter("管道状态")] public string PipeStatus { get; set; } /// /// 属性值列表 /// [Parameter("属性值列表")] public List PropValueList { get; set; } /// /// 位置 /// [Parameter("位置")] public RevitBoundingBox BoundingBox { get; set; } } }