namespace HStation.Model
{
///
///
///
public partial class RevitModel
{
///
/// 获取所有组件
///
public List GetAllParters()
{
var list = new List();
if (this.Reservoirs != null && this.Reservoirs.Count > 0)
{
list.AddRange(this.Reservoirs);
}
if (this.Tanks != null && this.Tanks.Count > 0)
{
list.AddRange(this.Tanks);
}
if (this.Waterboxs != null && this.Waterboxs.Count > 0)
{
list.AddRange(this.Waterboxs);
}
if (this.Junctions != null && this.Junctions.Count > 0)
{
list.AddRange(this.Junctions);
}
if (this.Nozzles != null && this.Nozzles.Count > 0)
{
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{
list.AddRange(this.Hydrants);
}
if (this.Meters != null && this.Meters.Count > 0)
{
list.AddRange(this.Meters);
}
if (this.Flowmeters != null && this.Flowmeters.Count > 0)
{
list.AddRange(this.Flowmeters);
}
if (this.Pressmeters != null && this.Pressmeters.Count > 0)
{
list.AddRange(this.Pressmeters);
}
if (this.Elbows != null && this.Elbows.Count > 0)
{
list.AddRange(this.Elbows);
}
if (this.Threelinks != null && this.Threelinks.Count > 0)
{
list.AddRange(this.Threelinks);
}
if (this.Fourlinks != null && this.Fourlinks.Count > 0)
{
list.AddRange(this.Fourlinks);
}
if (this.Bluntheads != null && this.Bluntheads.Count > 0)
{
list.AddRange(this.Bluntheads);
}
if (this.Pipes != null && this.Pipes.Count > 0)
{
list.AddRange(this.Pipes);
}
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.Pumps);
}
if (this.Valves != null && this.Valves.Count > 0)
{
list.AddRange(this.Valves);
}
return list;
}
///
/// 获取所有节点
///
public List GetAllNodes()
{
var list = new List();
if (this.Reservoirs != null && this.Reservoirs.Count > 0)
{
list.AddRange(this.Reservoirs);
}
if (this.Tanks != null && this.Tanks.Count > 0)
{
list.AddRange(this.Tanks);
}
if (this.Waterboxs != null && this.Waterboxs.Count > 0)
{
list.AddRange(this.Waterboxs);
}
if (this.Junctions != null && this.Junctions.Count > 0)
{
list.AddRange(this.Junctions);
}
if (this.Nozzles != null && this.Nozzles.Count > 0)
{
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{
list.AddRange(this.Hydrants);
}
if (this.Meters != null && this.Meters.Count > 0)
{
list.AddRange(this.Meters);
}
if (this.Flowmeters != null && this.Flowmeters.Count > 0)
{
list.AddRange(this.Flowmeters);
}
if (this.Pressmeters != null && this.Pressmeters.Count > 0)
{
list.AddRange(this.Pressmeters);
}
if (this.Elbows != null && this.Elbows.Count > 0)
{
list.AddRange(this.Elbows);
}
if (this.Threelinks != null && this.Threelinks.Count > 0)
{
list.AddRange(this.Threelinks);
}
if (this.Fourlinks != null && this.Fourlinks.Count > 0)
{
list.AddRange(this.Fourlinks);
}
if (this.Bluntheads != null && this.Bluntheads.Count > 0)
{
list.AddRange(this.Bluntheads);
}
return list;
}
///
/// 获取所有水源
///
///
public List GetAllWaterSources()
{
var list = new List();
if (this.Reservoirs != null && this.Reservoirs.Count > 0)
{
list.AddRange(this.Reservoirs);
}
if (this.Tanks != null && this.Tanks.Count > 0)
{
list.AddRange(this.Tanks);
}
if (this.Waterboxs != null && this.Waterboxs.Count > 0)
{
list.AddRange(this.Waterboxs);
}
return list;
}
///
/// 获取所有管段
///
public List GetAllLinks()
{
var list = new List();
if (this.Pipes != null && this.Pipes.Count > 0)
{
list.AddRange(this.Pipes);
}
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.Pumps);
}
if (this.Valves != null && this.Valves.Count > 0)
{
list.AddRange(this.Valves);
}
return list;
}
///
/// 获取所有连接节点
///
public List GetAllJunctions()
{
var list = new List();
if (this.Junctions != null && this.Junctions.Count > 0)
{
list.AddRange(this.Junctions);
}
if (this.Nozzles != null && this.Nozzles.Count > 0)
{
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{
list.AddRange(this.Hydrants);
}
if (this.Meters != null && this.Meters.Count > 0)
{
list.AddRange(this.Meters);
}
if (this.Flowmeters != null && this.Flowmeters.Count > 0)
{
list.AddRange(this.Flowmeters);
}
if (this.Pressmeters != null && this.Pressmeters.Count > 0)
{
list.AddRange(this.Pressmeters);
}
if (this.Elbows != null && this.Elbows.Count > 0)
{
list.AddRange(this.Elbows);
}
if (this.Threelinks != null && this.Threelinks.Count > 0)
{
list.AddRange(this.Threelinks);
}
if (this.Fourlinks != null && this.Fourlinks.Count > 0)
{
list.AddRange(this.Fourlinks);
}
if (this.Bluntheads != null && this.Bluntheads.Count > 0)
{
list.AddRange(this.Bluntheads);
}
return list;
}
///
/// 获取所有水池
///
///
public List GetAllTanks()
{
var list = new List();
if (this.Tanks != null && this.Tanks.Count > 0)
{
list.AddRange(this.Tanks);
}
if (this.Waterboxs != null && this.Waterboxs.Count > 0)
{
list.AddRange(this.Waterboxs);
}
return list;
}
///
/// 获取所有水库
///
public List GetAllReservoirs()
{
var list = new List();
if (this.Reservoirs != null && this.Reservoirs.Count > 0)
{
list.AddRange(this.Reservoirs);
}
return list;
}
///
/// 获取所有管道
///
public List GetAllPipes()
{
var list = new List();
if (this.Pipes != null && this.Pipes.Count > 0)
{
list.AddRange(this.Pipes);
}
if (this.Translations != null && this.Translations.Count > 0)
{
list.AddRange(this.Translations);
}
if (this.Exchangers != null && this.Exchangers.Count > 0)
{
list.AddRange(this.Exchangers);
}
return list;
}
///
/// 获取所有水泵
///
public List GetAllPumps()
{
var list = new List();
if (this.Pumps != null && this.Pumps.Count > 0)
{
list.AddRange(this.Pumps);
}
return list;
}
///
/// 获取所有阀门
///
public List GetAllValves()
{
var list = new List();
if (this.Valves != null && this.Valves.Count > 0)
{
list.AddRange(this.Valves);
}
return list;
}
}
}