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
| namespace HStation.Revit
| {
| /// <summary>
| /// 阀门类型
| /// </summary>
| public class ValveType
| {
| /// <summary>
| /// 减压阀 压强,m(psi)
| /// </summary>
| public const string PRV = "PRV";
|
| /// <summary>
| /// 稳压阀 压强,m(psi)
| /// </summary>
| public const string PSV = "PSV";
|
| /// <summary>
| /// 压力制动阀 压强,m(psi)
| /// </summary>
| public const string PBV = "PBV";
|
| /// <summary>
| /// 流量控制阀 流量(流量单位)
| /// </summary>
| public const string FCV = "FCV";
|
| /// <summary>
| /// 节流控制阀 损失系数
| /// </summary>
| public const string TCV = "TCV";
|
| /// <summary>
| /// 常规阀门 水头损失曲线ID
| /// </summary>
| public const string GPV = "GPV";
|
| /// <summary>
| /// 包含
| /// </summary>
| public static bool Contains(string type)
| {
| if (string.IsNullOrEmpty(type))
| {
| return false;
| }
| if (type == PRV)
| {
| return true;
| }
| if (type == PSV)
| {
| return true;
| }
| if (type == PBV)
| {
| return true;
| }
| if (type == FCV)
| {
| return true;
| }
| if (type == TCV)
| {
| return true;
| }
| if (type == GPV)
| {
| return true;
| }
| return false;
| }
|
|
| }
| }
|
|