| | |
| | | { |
| | | list.AddRange(this.Bluntheads); |
| | | } |
| | | if (this.Exchangers != null && this.Exchangers.Count > 0) |
| | | { |
| | | list.AddRange(this.Exchangers); |
| | | } |
| | | |
| | | |
| | | if (this.Pipes != null && this.Pipes.Count > 0) |
| | | { |
| | |
| | | if (this.Translations != null && this.Translations.Count > 0) |
| | | { |
| | | list.AddRange(this.Translations); |
| | | } |
| | | if (this.Exchangers != null && this.Exchangers.Count > 0) |
| | | { |
| | | list.AddRange(this.Exchangers); |
| | | } |
| | | if (this.Pumps != null && this.Pumps.Count > 0) |
| | | { |
| | |
| | | { |
| | | list.AddRange(this.Bluntheads); |
| | | } |
| | | if (this.Exchangers != null && this.Exchangers.Count > 0) |
| | | { |
| | | list.AddRange(this.Exchangers); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | |
| | | /// 获取所有水源 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<IRevitNode> GetAllWaterSources() |
| | | public List<IRevitSource> GetAllWaterSources() |
| | | { |
| | | var list = new List<IRevitNode>(); |
| | | var list = new List<IRevitSource>(); |
| | | if (this.Reservoirs != null && this.Reservoirs.Count > 0) |
| | | { |
| | | list.AddRange(this.Reservoirs); |
| | |
| | | if (this.Translations != null && this.Translations.Count > 0) |
| | | { |
| | | list.AddRange(this.Translations); |
| | | } |
| | | if (this.Exchangers != null && this.Exchangers.Count > 0) |
| | | { |
| | | list.AddRange(this.Exchangers); |
| | | } |
| | | if (this.Pumps != null && this.Pumps.Count > 0) |
| | | { |
| | |
| | | { |
| | | list.AddRange(this.Bluntheads); |
| | | } |
| | | if (this.Exchangers != null && this.Exchangers.Count > 0) |
| | | { |
| | | list.AddRange(this.Exchangers); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | |
| | | { |
| | | list.AddRange(this.Translations); |
| | | } |
| | | if (this.Exchangers != null && this.Exchangers.Count > 0) |
| | | { |
| | | list.AddRange(this.Exchangers); |
| | | } |
| | | |
| | | return list; |
| | | } |