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_Reservoir)]
|
public class RevitReservoir : RevitParter, IRevitReservoir
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public RevitReservoir() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public RevitReservoir(RevitReservoir rhs) : base(rhs)
|
{
|
this.ModelType = rhs.ModelType;
|
this.Head = rhs.Head;
|
this.Pattern = rhs.Pattern;
|
this.PropValueList = rhs.PropValueList?.Select(x => new RevitPropValue(x)).ToList();
|
this.BoundingBox = rhs.BoundingBox;
|
}
|
|
/// <summary>
|
/// 型号
|
/// </summary>
|
[Parameter("型号")]
|
public string ModelType { get; set; }
|
|
/// <summary>
|
/// 总水头
|
/// </summary>
|
public double Head { get; set; }
|
|
/// <summary>
|
/// 模式
|
/// </summary>
|
[Parameter("模式")]
|
public string Pattern { get; set; }
|
|
/// <summary>
|
/// 属性值列表
|
/// </summary>
|
[Parameter("属性值列表")]
|
public List<RevitPropValue> PropValueList { get; set; }
|
|
/// <summary>
|
/// 位置
|
/// </summary>
|
[Parameter("位置")]
|
public RevitBoundingBox BoundingBox { get; set; }
|
}
|
}
|