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.Bluntheads != null && this.Bluntheads.Count > 0)
{//闷头
list.AddRange(this.Bluntheads);
}
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.Nozzles != null && this.Nozzles.Count > 0)
{//喷嘴
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{//消火栓
list.AddRange(this.Hydrants);
}
if (this.Coolings != null && this.Coolings.Count > 0)
{//冷却塔
list.AddRange(this.Coolings);
}
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.Pipes != null && this.Pipes.Count > 0)
{//管道
list.AddRange(this.Pipes);
}
if (this.Translations != null && this.Translations.Count > 0)
{//过渡件
list.AddRange(this.Translations);
}
if (this.Pumps != null && this.Pumps.Count > 0)
{//水泵
list.AddRange(this.Pumps);
}
if (this.Valves != null && this.Valves.Count > 0)
{//阀门
list.AddRange(this.Valves);
}
if (this.Exchangers != null && this.Exchangers.Count > 0)
{//换热器
list.AddRange(this.Exchangers);
}
if (this.Compressors != null && this.Compressors.Count > 0)
{//空压机
list.AddRange(this.Compressors);
}
return list;
}
///
/// 获取所有可见组件
///
public List GetAllVisuals()
{
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.Bluntheads != null && this.Bluntheads.Count > 0)
{//闷头
list.AddRange(this.Bluntheads);
}
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.Nozzles != null && this.Nozzles.Count > 0)
{//喷嘴
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{//消火栓
list.AddRange(this.Hydrants);
}
if (this.Coolings != null && this.Coolings.Count > 0)
{//冷却塔
list.AddRange(this.Coolings);
}
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.Pipes != null && this.Pipes.Count > 0)
{//管道
list.AddRange(this.Pipes);
}
if (this.Translations != null && this.Translations.Count > 0)
{//过渡件
list.AddRange(this.Translations);
}
if (this.Pumps != null && this.Pumps.Count > 0)
{//水泵
list.AddRange(this.Pumps);
}
if (this.Valves != null && this.Valves.Count > 0)
{//阀门
list.AddRange(this.Valves);
}
if (this.Exchangers != null && this.Exchangers.Count > 0)
{//换热器
list.AddRange(this.Exchangers);
}
if (this.Compressors != null && this.Compressors.Count > 0)
{//空压机
list.AddRange(this.Compressors);
}
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.Bluntheads != null && this.Bluntheads.Count > 0)
{//闷头
list.AddRange(this.Bluntheads);
}
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.Nozzles != null && this.Nozzles.Count > 0)
{//喷嘴
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{//消火栓
list.AddRange(this.Hydrants);
}
if (this.Coolings != null && this.Coolings.Count > 0)
{//冷却塔
list.AddRange(this.Coolings);
}
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);
}
return list;
}
///
/// 获取所有水源组件
///
public List GetAllSources()
{
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 GetAllJunctions()
{
var list = new List();
if (this.Junctions != null && this.Junctions.Count > 0)
{//连接节点
list.AddRange(this.Junctions);
}
if (this.Bluntheads != null && this.Bluntheads.Count > 0)
{//闷头
list.AddRange(this.Bluntheads);
}
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.Nozzles != null && this.Nozzles.Count > 0)
{//喷嘴
list.AddRange(this.Nozzles);
}
if (this.Hydrants != null && this.Hydrants.Count > 0)
{//消火栓
list.AddRange(this.Hydrants);
}
if (this.Coolings != null && this.Coolings.Count > 0)
{//冷却塔
list.AddRange(this.Coolings);
}
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);
}
return list;
}
///
/// 获取所有扩散器组件
///
public List GetAllEmitters()
{
var list = new List();
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.Coolings != null && this.Coolings.Count > 0)
{//冷却塔
list.AddRange(this.Coolings);
}
return list;
}
///
/// 获取所有连接组件
///
public List GetAllCouplings()
{
var list = new List();
if (this.Bluntheads != null && this.Bluntheads.Count > 0)
{//闷头
list.AddRange(this.Bluntheads);
}
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);
}
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.Pumps != null && this.Pumps.Count > 0)
{//水泵
list.AddRange(this.Pumps);
}
if (this.Valves != null && this.Valves.Count > 0)
{//阀门
list.AddRange(this.Valves);
}
if (this.Exchangers != null && this.Exchangers.Count > 0)
{//换热器
list.AddRange(this.Exchangers);
}
if (this.Compressors != null && this.Compressors.Count > 0)
{//空压机
list.AddRange(this.Compressors);
}
return list;
}
}
}