zhangyk-c
2024-07-22 794cfd44a319ae5f0d8a53aec44fd0b98f7a203b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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_Pump)]
    public class RevitPump : RevitParter, IRevitPump
    {
        /// <summary>
        /// 
        /// </summary>
        public RevitPump() { }
 
        /// <summary>
        /// 
        /// </summary>
        public RevitPump(RevitPump rhs) : base(rhs)
        {
            this.ModelType = rhs.ModelType;
            this.StartCode = rhs.StartCode;
            this.EndCode = rhs.EndCode;
            this.Power = rhs.Power;
            this.Head = rhs.Head;
            this.Speed = rhs.Speed;
            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>
        [Parameter("上游节点")]
        public string StartCode { get; set; }
 
        /// <summary>
        /// 下游节点
        /// </summary>
        [Parameter("下游节点")]
        public string EndCode { get; set; }
 
        /// <summary>
        ///  恒定能量水泵的功率
        /// </summary>
        [Parameter("恒定能量水泵的功率")]
        public double Power { get; set; }
 
        /// <summary>
        /// 描述水泵扬程与流量关系的曲线
        /// </summary>
        [Parameter("描述水泵扬程与流量关系的曲线")]
        public string Head { get; set; }
 
        /// <summary>
        /// 相对转速设置
        /// </summary>
        [Parameter("相对转速设置")]
        public double? Speed { 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; }
    }
}