| | |
| | | { |
| | | var list = new List<RevitParter>(); |
| | | 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.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.Bluntheads != null && this.Bluntheads.Count > 0) |
| | | { |
| | | list.AddRange(this.Bluntheads); |
| | | 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.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); |
| | | } |
| | | |
| | | 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; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有节点 |
| | | /// 获取所有可见组件 |
| | | /// </summary> |
| | | public List<RevitVisual> GetAllVisuals() |
| | | { |
| | | var list = new List<RevitVisual>(); |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有节点组件 |
| | | /// </summary> |
| | | public List<RevitNode> GetAllNodes() |
| | | { |
| | | var list = new List<RevitNode>(); |
| | | 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.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.Bluntheads != null && this.Bluntheads.Count > 0) |
| | | { |
| | | list.AddRange(this.Bluntheads); |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有管段 |
| | | /// 获取所有水源组件 |
| | | /// </summary> |
| | | public List<RevitLink> GetAllLinks() |
| | | { |
| | | var list = new List<RevitLink>(); |
| | | |
| | | |
| | | 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; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有水源 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<RevitSource> GetAllWaterSources() |
| | | public List<RevitSource> GetAllSources() |
| | | { |
| | | var list = new List<RevitSource>(); |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有连接节点 |
| | | /// 获取所有连接节点组件 |
| | | /// </summary> |
| | | public List<RevitJunction> GetAllJunctions() |
| | | { |
| | | var list = new List<RevitJunction>(); |
| | | 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.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.Bluntheads != null && this.Bluntheads.Count > 0) |
| | | { |
| | | list.AddRange(this.Bluntheads); |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有扩散器 |
| | | /// 获取所有扩散器组件 |
| | | /// </summary> |
| | | public List<RevitEmitter> GetAllEmitters() |
| | | { |
| | | var list = new List<RevitEmitter>(); |
| | | |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有管道 |
| | | /// 获取所有连接组件 |
| | | /// </summary> |
| | | public List<RevitPipe> GetAllPipes() |
| | | public List<RevitCoupling> GetAllCouplings() |
| | | { |
| | | var list = new List<RevitPipe>(); |
| | | var list = new List<RevitCoupling>(); |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取所有管段组件 |
| | | /// </summary> |
| | | public List<RevitLink> GetAllLinks() |
| | | { |
| | | var list = new List<RevitLink>(); |
| | | |
| | | 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; |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |