Desktop/HStation.Desktop.Xhs.Core/RevitTestHelper.cs
ÎļþÒÑɾ³ý Hydro/HStation.Hydro.Core/TransferHelper.cs
@@ -65,7 +65,7 @@ tank.InitLevel = revitTank.InitLevel; tank.MinLevel = revitTank.MinLevel; tank.MaxLevel = revitTank.MaxLevel; tank.Diameter = revitTank.Diameter; tank.Diameter = revitTank.DN; tank.MinVol = revitTank.MinVol; tank.VolCurve = revitTank.VolCurve; tank.Position2d = new Yw.Model.Hydro.Position2d(revitTank.Position.X, revitTank.Position.Y); @@ -97,7 +97,7 @@ waterbox.InitLevel = revitWaterbox.InitLevel; waterbox.MinLevel = revitWaterbox.MinLevel; waterbox.MaxLevel = revitWaterbox.MaxLevel; waterbox.Diameter = revitWaterbox.Diameter; waterbox.Diameter = revitWaterbox.DN; waterbox.MinVol = revitWaterbox.MinVol; waterbox.VolCurve = revitWaterbox.VolCurve; waterbox.Position2d = new Yw.Model.Hydro.Position2d(revitWaterbox.Position.X, revitWaterbox.Position.Y); @@ -409,7 +409,7 @@ pump.StartCode = revitPump.StartCode; pump.EndCode = revitPump.EndCode; pump.LinkStatus = revitPump.LinkStatus; pump.RatedP = revitPump.RatedPower; pump.RatedP = revitPump.RatedP; pump.CurveQH = revitPump.CurveQH; pump.Price = revitPump.Price; pump.PricePattern = revitPump.PricePattern; Service/HStation.Service.Revit.Core/00-core/LinkStatus.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,28 @@ namespace HStation.Revit { /// <summary> /// ç®¡æ®µç¶æ /// </summary> public class LinkStatus { /// <summary> /// æ /// </summary> public const string None = "None"; /// <summary> /// å¼å¯ /// </summary> public const string Open = "Open"; /// <summary> /// å ³é /// </summary> public const string Closed = "Closed"; /// <summary> /// CV æå³ç管éå å«äºéå¶æµåçæ¢åé /// </summary> public const string CV = "CV"; } } Service/HStation.Service.Revit.Core/00-core/PipeStatus.cs
@@ -19,5 +19,30 @@ /// CV æå³ç管éå å«äºéå¶æµåçæ¢åé /// </summary> public const string CV = "CV"; /// <summary> /// å å« /// </summary> public static bool Contains(string status) { if (string.IsNullOrEmpty(status)) { return false; } if (status == Open) { return true; } if (status == Closed) { return true; } if (status == CV) { return true; } return false; } } } Service/HStation.Service.Revit.Core/00-core/PumpStatus.cs
@@ -14,5 +14,27 @@ /// å ³é /// </summary> public const string Closed = "Closed"; /// <summary> /// å å« /// </summary> public static bool Contains(string status) { if (string.IsNullOrEmpty(status)) { return false; } if (status == Open) { return true; } if (status == Closed) { return true; } return false; } } } Service/HStation.Service.Revit.Core/00-core/Valve.cs
ÎļþÒÑɾ³ý Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs
@@ -19,5 +19,31 @@ /// å ³é /// </summary> public const string Closed = "Closed"; /// <summary> /// å å« /// </summary> public static bool Contains(string status) { if (string.IsNullOrEmpty(status)) { return false; } if (status == None) { return true; } if (status == Open) { return true; } if (status == Closed) { return true; } return false; } } } Service/HStation.Service.Revit.Core/00-core/ValveType.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,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; } } } Service/HStation.Service.Revit.Core/01-model/RevitModel.cs
@@ -46,8 +46,8 @@ this.Junctions = rhs.Junctions; this.Nozzles = rhs.Nozzles; this.Hydrants = rhs.Hydrants; this.Elbows = rhs.Elbows; this.Bluntheads = rhs.Bluntheads; this.Elbows = rhs.Elbows; this.Threelinks = rhs.Threelinks; this.Fourlinks = rhs.Fourlinks; this.Meters = rhs.Meters; @@ -108,6 +108,11 @@ public List<RevitHydrant> Hydrants { get; set; } /// <summary> /// é·å¤´å表 /// </summary> public List<RevitBlunthead> Bluntheads { get; set; } /// <summary> /// 弯头å表 /// </summary> public List<RevitElbow> Elbows { get; set; } @@ -121,11 +126,6 @@ /// åéå表 /// </summary> public List<RevitFourlink> Fourlinks { get; set; } /// <summary> /// é·å¤´å表 /// </summary> public List<RevitBlunthead> Bluntheads { get; set; } /// <summary> /// 水表 @@ -148,16 +148,6 @@ #region 管段 /// <summary> /// æ°´æ³µå表 /// </summary> public List<RevitPump> Pumps { get; set; } /// <summary> /// éé¨å表 /// </summary> public List<RevitValve> Valves { get; set; } /// <summary> /// 管éå表 /// </summary> public List<RevitPipe> Pipes { get; set; } @@ -172,6 +162,16 @@ /// </summary> public List<RevitExchanger> Exchangers { get; set; } /// <summary> /// æ°´æ³µå表 /// </summary> public List<RevitPump> Pumps { get; set; } /// <summary> /// éé¨å表 /// </summary> public List<RevitValve> Valves { get; set; } #endregion #region è£ é¥°ä»¶ Service/HStation.Service.Revit.Core/01-model/RevitModel_Method.cs
@@ -89,7 +89,90 @@ } /// <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.Nozzles != null && this.Nozzles.Count > 0) {//å·å´ list.AddRange(this.Nozzles); } if (this.Hydrants != null && this.Hydrants.Count > 0) {//æ¶ç«æ list.AddRange(this.Hydrants); } 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.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); } return list; } /// <summary> /// è·åææèç¹ç»ä»¶ /// </summary> public List<RevitNode> GetAllNodes() { @@ -150,42 +233,9 @@ } /// <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) @@ -204,7 +254,7 @@ } /// <summary> /// è·åææè¿æ¥èç¹ /// è·åææè¿æ¥èç¹ç»ä»¶ /// </summary> public List<RevitJunction> GetAllJunctions() { @@ -253,7 +303,7 @@ } /// <summary> /// è·åæææ©æ£å¨ /// è·åæææ©æ£å¨ç»ä»¶ /// </summary> public List<RevitEmitter> GetAllEmitters() { @@ -272,7 +322,64 @@ } /// <summary> /// è·åææç®¡é /// è·åææè¿æ¥ç»ä»¶ /// </summary> public List<RevitCoupling> GetAllCouplings() { 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.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> public List<RevitPipe> GetAllPipes() { Service/HStation.Service.Revit.Core/02-parter/00-core/RevitParter.cs
@@ -22,7 +22,6 @@ this.Flags = rhs.Flags; this.Description = rhs.Description; this.ConnectList = rhs.ConnectList?.Select(x => new RevitConnect(x)).ToList(); this.PropValueList = rhs.PropValueList?.Select(x => new RevitPropValue(x)).ToList(); this.PropStatusList = rhs.PropStatusList?.Select(x => new RevitPropStatus(x)).ToList(); } @@ -56,11 +55,6 @@ /// 说æ /// </summary> public string Description { get; set; } /// <summary> /// è¿æ¥å表 /// </summary> public List<RevitConnect> ConnectList { get; set; } /// <summary> /// 屿§å¼å表 Service/HStation.Service.Revit.Core/02-parter/01-visual/RevitVisual.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,28 @@ namespace HStation.Model { /// <summary> /// å¯è§ç»ä»¶ /// </summary> public abstract class RevitVisual : RevitParter { /// <summary> /// /// </summary> public RevitVisual() : base() { } /// <summary> /// /// </summary> public RevitVisual(RevitVisual rhs) : base(rhs) { this.ConnectList = rhs.ConnectList?.Select(x => new RevitConnect(x)).ToList(); } /// <summary> /// è¿æ¥å表 /// </summary> public List<RevitConnect> ConnectList { get; set; } } } Service/HStation.Service.Revit.Core/02-parter/02-node/00-core/RevitNode.cs
@@ -1,9 +1,9 @@ namespace HStation.Model { /// <summary> /// èç¹ /// èç¹ç»ä»¶ /// </summary> public abstract class RevitNode : RevitParter public abstract class RevitNode : RevitVisual { /// <summary> /// @@ -28,5 +28,7 @@ /// ä½ç½® /// </summary> public RevitPosition Position { get; set; } } } Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/00-core/RevitJunction.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitJunction.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitJunction() { } public RevitJunction() : base() { } /// <summary> /// @@ -21,12 +21,12 @@ } /// <summary> /// æ é« /// æ é« (m) /// </summary> public double Elev { get; set; } /// <summary> /// éæ°´é /// éæ°´é (m³/h) /// </summary> public double? Demand { get; set; } Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/01-source/00-core/RevitSource.cs
Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/01-source/01-reservoir/RevitReservoir.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/01-reservoir/RevitReservoir.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitReservoir() { } public RevitReservoir() : base() { } /// <summary> /// @@ -21,12 +21,12 @@ } /// <summary> /// æ± åºæ é« /// æ± åºæ é« (m) /// </summary> public double? PoolElev { get; set; } /// <summary> /// æ»æ°´å¤´ /// æ»æ°´å¤´ (m) /// </summary> public double Head { get; set; } Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/01-source/02-tank/RevitTank.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/02-tank/RevitTank.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitTank() { } public RevitTank() : base() { } /// <summary> /// @@ -19,39 +19,39 @@ this.InitLevel = rhs.InitLevel; this.MinLevel = rhs.MinLevel; this.MaxLevel = rhs.MaxLevel; this.Diameter = rhs.Diameter; this.DN = rhs.DN; this.MinVol = rhs.MinVol; this.VolCurve = rhs.VolCurve; this.OverFlow = rhs.OverFlow; } /// <summary> /// æ± åºæ é« /// æ± åºæ é« (m) /// </summary> public double PoolElev { get; set; } /// <summary> /// åå§æ°´ä½ /// åå§æ°´ä½ (m) /// </summary> public double InitLevel { get; set; } /// <summary> /// æä½æ°´ä½ /// æä½æ°´ä½ (m) /// </summary> public double MinLevel { get; set; } /// <summary> /// æé«æ°´ä½ /// æé«æ°´ä½ (m) /// </summary> public double MaxLevel { get; set; } /// <summary> /// ç´å¾ /// å ¬ç§°ç´å¾ (m) /// </summary> public double Diameter { get; set; } public double DN { get; set; } /// <summary> /// æå°å®¹ç§¯ /// æå°å®¹ç§¯ (m³) /// </summary> public double MinVol { get; set; } Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/01-source/02-tank/RevitWaterbox.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/02-tank/RevitWaterbox.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitWaterbox() { } public RevitWaterbox() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/02-coupling/00-core/RevitCoupling.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,38 @@ namespace HStation.Model { /// <summary> /// è¿æ¥ç»ä»¶ /// </summary> public class RevitCoupling : RevitJunction { /// <summary> /// /// </summary> public RevitCoupling() : base() { } /// <summary> /// /// </summary> public RevitCoupling(RevitCoupling rhs) : base(rhs) { } /// <summary> /// æè´¨ /// </summary> public string Material { get; set; } /// <summary> /// å£å¾ï¼mmï¼ /// </summary> public double? Caliber { get; set; } /// <summary> /// å±é¨é»åç³»æ° /// </summary> public double? MinorLoss { get; set; } } } Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/02-coupling/01-blunthead/RevitBlunthead.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitBlunthead.cs ÐÞ¸Ä @@ -1,14 +1,14 @@ namespace HStation.Model { /// <summary> /// é·å¤´ /// é·å¤´ç»ä»¶ /// </summary> public class RevitBlunthead : RevitJunction public class RevitBlunthead : RevitCoupling { /// <summary> /// /// </summary> public RevitBlunthead() { } public RevitBlunthead() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/02-coupling/02-elbow/RevitElbow.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitElbow.cs ÐÞ¸Ä @@ -3,12 +3,12 @@ /// <summary> /// 弯头 /// </summary> public class RevitElbow : RevitJunction public class RevitElbow : RevitCoupling { /// <summary> /// /// </summary> public RevitElbow() { } public RevitElbow() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/02-coupling/03-threelink/RevitThreelink.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitThreelink.cs ÐÞ¸Ä @@ -3,12 +3,12 @@ /// <summary> /// ä¸é /// </summary> public class RevitThreelink : RevitJunction public class RevitThreelink : RevitCoupling { /// <summary> /// /// </summary> public RevitThreelink() { } public RevitThreelink() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/02-coupling/04-fourlink/RevitFourlink.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitFourlink.cs ÐÞ¸Ä @@ -3,12 +3,12 @@ /// <summary> /// åé /// </summary> public class RevitFourlink : RevitJunction public class RevitFourlink : RevitCoupling { /// <summary> /// /// </summary> public RevitFourlink() { } public RevitFourlink() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/03-emitter/00-core/RevitEmitter.cs
Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/03-emitter/01-nozzle/RevitNozzle.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitNozzle.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitNozzle() { } public RevitNozzle() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/03-emitter/02-hydrant/RevitHydrant.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitHydrant.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitHydrant() { } public RevitHydrant() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/04-meter/RevitMeter.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitMeter.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitMeter() { } public RevitMeter() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/05-other/RevitFlowmeter.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitFlowmeter.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitFlowmeter() { } public RevitFlowmeter() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/02-node/01-junction/05-other/RevitPressmeter.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/03-junction/RevitPressmeter.cs ÐÞ¸Ä @@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitPressmeter() { } public RevitPressmeter() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/03-link/00-core/RevitLink.cs
@@ -3,12 +3,12 @@ /// <summary> /// 管段 /// </summary> public abstract class RevitLink : RevitParter public abstract class RevitLink : RevitVisual { /// <summary> /// /// </summary> public RevitLink() { } public RevitLink() : base() { } /// <summary> /// @@ -42,12 +42,12 @@ public string LinkStatus { get; set; } /// <summary> /// 䏿¸¸æ é« /// 䏿¸¸æ é« (m) /// </summary> public double StartElev { get; set; } /// <summary> /// 䏿¸¸æ é« /// 䏿¸¸æ é« (m) /// </summary> public double EndElev { get; set; } Service/HStation.Service.Revit.Core/02-parter/03-link/01-pipe/RevitExchanger.cs
@@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitExchanger() { } public RevitExchanger() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/03-link/01-pipe/RevitPipe.cs
@@ -8,24 +8,19 @@ /// <summary> /// /// </summary> public RevitPipe() { } public RevitPipe() : base() { } /// <summary> /// /// </summary> public RevitPipe(RevitPipe rhs) : base(rhs) { this.Diameter = rhs.Diameter; this.Material = rhs.Material; this.Diameter = rhs.Diameter; this.Length = rhs.Length; this.Roughness = rhs.Roughness; this.MinorLoss = rhs.MinorLoss; } /// <summary> /// ç´å¾(å å¾) mm /// </summary> public double Diameter { get; set; } /// <summary> /// æè´¨ @@ -33,7 +28,12 @@ public string Material { get; set; } /// <summary> /// é¿åº¦ /// ç´å¾ (mm) /// </summary> public double Diameter { get; set; } /// <summary> /// é¿åº¦ (m) /// </summary> public double Length { get; set; } @@ -47,5 +47,7 @@ /// </summary> public double MinorLoss { get; set; } } } Service/HStation.Service.Revit.Core/02-parter/03-link/01-pipe/RevitTranslation.cs
@@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitTranslation() { } public RevitTranslation() : base() { } /// <summary> /// Service/HStation.Service.Revit.Core/02-parter/03-link/02-pump/RevitPump.cs
@@ -8,26 +8,51 @@ /// <summary> /// /// </summary> public RevitPump() { } public RevitPump() : base() { } /// <summary> /// /// </summary> public RevitPump(RevitPump rhs) : base(rhs) { this.RatedPower = rhs.RatedPower; this.RatedP = rhs.RatedP; this.RatedQ = rhs.RatedQ; this.RatedH = rhs.RatedH; this.RatedN = rhs.RatedN; this.RatedHz = rhs.RatedHz; this.CurveQH = rhs.CurveQH; this.CurveQP = rhs.CurveQP; this.CurveQE = rhs.CurveQE; this.SpeedRatio = rhs.SpeedRatio; this.SpeedRatioPattern = rhs.SpeedRatioPattern; this.Price = rhs.Price; this.PricePattern = rhs.PricePattern; this.CurveQE = rhs.CurveQE; } /// <summary> /// é¢å®åç /// é¢å®åç (kW) /// </summary> public double RatedPower { get; set; } public double RatedP { get; set; } /// <summary> /// é¢å®æµéï¼m³/hï¼ /// </summary> public double? RatedQ { get; set; } /// <summary> /// é¢å®æ¬ç¨ï¼mï¼ /// </summary> public double? RatedH { get; set; } /// <summary> /// é¢å®è½¬éï¼r/minï¼ /// </summary> public double? RatedN { get; set; } /// <summary> /// é¢å®é¢ç /// </summary> public double RatedHz { get; set; } /// <summary> /// æµéæ¬ç¨æ²çº¿ @@ -35,9 +60,19 @@ public string CurveQH { get; set; } /// <summary> /// è½¬éæ¯ /// æµéåçæ²çº¿ /// </summary> public double? SpeedRatio { get; set; } public string CurveQP { get; set; } /// <summary> /// æµéæçæ²çº¿ /// </summary> public string CurveQE { get; set; } /// <summary> /// è½¬éæ¯[0,1] /// </summary> public double SpeedRatio { get; set; } /// <summary> /// è½¬éæ¯æ¨¡å¼ @@ -54,10 +89,7 @@ /// </summary> public string PricePattern { get; set; } /// <summary> /// æµéæçæ²çº¿ /// </summary> public string CurveQE { get; set; } Service/HStation.Service.Revit.Core/02-parter/03-link/03-valve/RevitValve.cs
@@ -8,7 +8,7 @@ /// <summary> /// /// </summary> public RevitValve() { } public RevitValve() : base() { } /// <summary> /// @@ -21,10 +21,8 @@ this.ValveSetting = rhs.ValveSetting; } /// <summary> /// éé¨ç´å¾ /// éé¨ç´å¾ (mm) /// </summary> public double Diameter { get; set; } Service/HStation.Service.Revit.Core/02-parter/09-model/RevitConnect.cs
Service/HStation.Service.Revit.Core/02-parter/09-model/RevitPosition.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/00-core/RevitPosition.cs ÐÞ¸Ä @@ -47,6 +47,8 @@ /// Z /// </summary> public double Z { get; set; } } Service/HStation.Service.Revit.Core/02-parter/09-model/RevitPropStatus.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/02-node/00-core/RevitPropStatus.cs ÐÞ¸Ä @@ -25,9 +25,12 @@ /// </summary> public RevitPropStatus(RevitPropStatus rhs) { this.PropName = rhs.PropName; this.PropStatus = rhs.PropStatus; this.StatusInfo = rhs.StatusInfo; if (rhs != null) { this.PropName = rhs.PropName; this.PropStatus = rhs.PropStatus; this.StatusInfo = rhs.StatusInfo; } } /// <summary> Service/HStation.Service.Revit.Core/02-parter/09-model/RevitPropValue.cs
ÎļþÃû´Ó Service/HStation.Service.Revit.Core/02-parter/00-core/RevitPropValue.cs ÐÞ¸Ä @@ -24,8 +24,11 @@ /// </summary> public RevitPropValue(RevitPropValue rhs) { this.PropName = rhs.PropName; this.PropValue = rhs.PropValue; if (rhs != null) { this.PropName = rhs.PropName; this.PropValue = rhs.PropValue; } } /// <summary> Service/HStation.Service.Revit.Core/04-service/01-json/00-core/RevitJsonProp.cs
@@ -51,8 +51,6 @@ /// </summary> public const string Quality = "åå§æ°´è´¨"; #region æ é« /// <summary> /// æ é«ä¿¡æ¯ /// </summary> @@ -78,8 +76,6 @@ /// </summary> public const string PoolElev = "æ± åºæ é«"; #endregion /// <summary> /// éæ°´éï¼è¿æ¥èç¹ï¼ /// </summary> @@ -90,7 +86,10 @@ /// </summary> public const string DemandPattern = "éæ°´æ¨¡å¼"; #region æ©æ£ç³»æ° /// <summary> /// æµé/å·å°ç³»æ° /// </summary> public const string CoefficientP = "å·å°ç³»æ°"; /// <summary> /// æµé/å·å°ç³»æ° @@ -98,23 +97,9 @@ public const string CoefficientF = "æµéç³»æ°"; /// <summary> /// æµé/å·å°ç³»æ° /// </summary> public const string CoefficientP = "å·å°ç³»æ°"; #endregion #region æè´¨ /// <summary> /// æè´¨ /// </summary> public const string Material = "æè´¨"; #endregion /// <summary> /// æ»æ°´å¤´ï¼æ°´åºï¼ @@ -125,8 +110,6 @@ /// 水头模å¼ï¼æ°´åºï¼ /// </summary> public const string HeadPattern = "水头模å¼"; /// <summary> /// åå§æ°´ä½ï¼æ°´æ± ï¼ @@ -153,8 +136,6 @@ /// </summary> public const string VolCurve = "容积æ²çº¿"; /// <summary> /// ç´å¾ /// </summary> @@ -163,25 +144,22 @@ /// <summary> /// å ¬ç§°ç´å¾ /// </summary> public const string NominalDiameter = "å ¬ç§°ç´å¾"; public const string DN = "å ¬ç§°ç´å¾"; /// <summary> /// å£å¾ /// </summary> public const string Caliber = "å£å¾"; /// <summary> /// å å¾ /// </summary> public const string InternalDiameter = "å å¾"; /// <summary> /// ç®¡æ®µç¶æ/管éç¶æ /// </summary> public const string LinkStatusPipe = "管éç¶æ"; /// <summary> /// 䏿¸¸åå§æ°´è´¨ @@ -214,14 +192,44 @@ public const string LinkStatusPump = "æ°´æ³µç¶æ"; /// <summary> /// é¢å®åçï¼æ°´æ³µï¼ /// é¢å®åç /// </summary> public const string RatedPower = "é¢å®åç"; public const string RatedP = "é¢å®åç"; /// <summary> /// æµéæ¬ç¨æ²çº¿ï¼æ°´æ³µï¼ /// é¢å®æµé /// </summary> public const string RatedQ = "é¢å®æµé"; /// <summary> /// é¢å®æ¬ç¨ /// </summary> public const string RatedH = "é¢å®æ¬ç¨"; /// <summary> /// é¢å®è½¬é /// </summary> public const string RatedN = "é¢å®è½¬é"; /// <summary> /// é¢å®é¢ç /// </summary> public const string RatedHz = "é¢å®é¢ç"; /// <summary> /// æµéæ¬ç¨æ²çº¿ /// </summary> public const string CurveQH = "æµéæ¬ç¨æ²çº¿"; /// <summary> /// æµéåçæ²çº¿ /// </summary> public const string CurveQP = "æµéåçæ²çº¿"; /// <summary> /// æµéæçæ²çº¿ /// </summary> public const string CurveQE = "æµéæçæ²çº¿"; /// <summary> /// è½¬éæ¯ï¼æ°´æ³µï¼ @@ -242,11 +250,6 @@ /// ä»·æ ¼æ¨¡å¼ï¼æ°´æ³µï¼ /// </summary> public const string PricePattern = "ä»·æ ¼æ¨¡å¼"; /// <summary> /// æµéæçæ²çº¿ï¼æ°´æ³µï¼ /// </summary> public const string CurveQE = "æµéæçæ²çº¿"; /// <summary> /// éé¨ç¶æ Service/HStation.Service.Revit.Core/04-service/01-json/02-helper/RevitConnectListExtensions.cs
@@ -1,6 +1,4 @@ using HStation.Model; namespace HStation.Service namespace HStation.Service { /// <summary> /// è¿æ¥å表æå± @@ -12,7 +10,7 @@ /// </summary> /// <param name="list">è¿æ¥å表</param> /// <returns></returns> public static RevitPosition GetCenterPosition(this List<RevitConnect> list) public static Model.RevitPosition GetCenterPosition(this List<Model.RevitConnect> list) { if (list == null || list.Count < 1) { @@ -27,7 +25,7 @@ /// </summary> /// <param name="list">è¿æ¥å表</param> /// <returns></returns> public static RevitConnect GetStartConnect(this List<RevitConnect> list) public static Model.RevitConnect GetStartConnect(this List<Model.RevitConnect> list) { if (list == null || list.Count < 1) { @@ -46,7 +44,7 @@ /// </summary> /// <param name="list">è¿æ¥å表</param> /// <returns></returns> public static List<RevitConnect> GetStartConnects(this List<RevitConnect> list) public static List<Model.RevitConnect> GetStartConnects(this List<Model.RevitConnect> list) { if (list == null || list.Count < 1) { @@ -61,7 +59,7 @@ /// </summary> /// <param name="list">è¿æ¥å表</param> /// <returns></returns> public static RevitConnect GetEndConnect(this List<RevitConnect> list) public static Model.RevitConnect GetEndConnect(this List<Model.RevitConnect> list) { if (list == null || list.Count < 1) { @@ -80,7 +78,7 @@ /// </summary> /// <param name="list">è¿æ¥å表</param> /// <returns></returns> public static List<RevitConnect> GetEndConnects(this List<RevitConnect> list) public static List<Model.RevitConnect> GetEndConnects(this List<Model.RevitConnect> list) { if (list == null || list.Count < 1) { Service/HStation.Service.Revit.Core/04-service/01-json/02-helper/RevitParterExtensions.cs
@@ -1,29 +1,69 @@ using HStation.Model; namespace HStation.Service namespace HStation.Service { /// <summary> /// /// Revitç»ä»¶æå± /// </summary> internal static class RevitParterExtensions { /// <summary> /// è·å屿§ç¶æ /// </summary> public static HStation.Model.RevitPropStatus GetPropStatus(this HStation.Model.RevitParter parter, string propName) { if (string.IsNullOrEmpty(propName)) { return default; } var propStatus = parter.PropStatusList?.Find(x => x.PropName == propName); return propStatus; } /// <summary> /// /// æ¯å¦åå¨å±æ§ç¶æ /// </summary> public static void AppendPropStatus(this RevitParter rhs, string propName, ePropStatus propStatus, string statusInfo) public static bool IsExistPropStatus(this HStation.Model.RevitParter parter, string propName) { if (rhs == null) if (string.IsNullOrEmpty(propName)) { return; return false; } if (rhs.PropStatusList == null) if (parter.PropStatusList == null || parter.PropStatusList.Count < 1) { rhs.PropStatusList = new List<RevitPropStatus>(); return false; } var status = new RevitPropStatus(propName, propStatus, statusInfo); rhs.PropStatusList.Add(status); return parter.PropStatusList.Exists(x => x.PropName == propName); } /// <summary> /// æ·»å æè æ´æ°å±æ§ç¶æ /// </summary> public static bool AppendOrUpdatePropStatus(this HStation.Model.RevitParter parter, string propName, ePropStatus propStatus, string statusInfo) { if (parter == null) { return false; } if (string.IsNullOrEmpty(propName)) { return false; } if (parter.PropStatusList == null) { parter.PropStatusList = new List<Model.RevitPropStatus>(); } var propStatusModel = parter.GetPropStatus(propName); if (propStatusModel == null) { propStatusModel = new Model.RevitPropStatus() { PropName = propName }; parter.PropStatusList.Add(propStatusModel); } propStatusModel.PropStatus = propStatus; propStatusModel.StatusInfo = statusInfo; return true; } } } Service/HStation.Service.Revit.Core/04-service/01-json/02-helper/RevitPositionListExtensions.cs
@@ -1,6 +1,4 @@ using HStation.Model; namespace HStation.Service namespace HStation.Service { /// <summary> /// @@ -12,13 +10,13 @@ /// </summary> /// <param name="list">ä½ç½®å表</param> /// <returns></returns> public static RevitPosition GetCenter(this List<RevitPosition> list) public static Model.RevitPosition GetCenter(this List<Model.RevitPosition> list) { if (list == null || list.Count < 1) { return default; } return new RevitPosition() return new Model.RevitPosition() { X = list.Average(x => x.X), Y = list.Average(x => x.Y), Service/HStation.Service.Revit.Core/04-service/01-json/RevitJsonHelper.cs
ÎļþÌ«´ó Service/HStation.Service.Revit.Core/04-service/02-correct/RevitCorrectHelper.cs
@@ -44,7 +44,7 @@ private static bool Zero(Model.RevitModel rhs, out string msg) { msg = string.Empty; var allWaterSourceList = rhs.GetAllWaterSources(); var allWaterSourceList = rhs.GetAllSources(); if (allWaterSourceList == null || allWaterSourceList.Count < 1) { msg = "æ æ°´æº";