From 43bd8ee779a4cca7483bdf73c176b9fb8ebed5e2 Mon Sep 17 00:00:00 2001
From: qin <a@163.com>
Date: 星期二, 24 九月 2024 17:24:28 +0800
Subject: [PATCH] 水力计算

---
 HStation.RevitDev/RevitDataExport/Parser/Pipe.cs |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/HStation.RevitDev/RevitDataExport/Parser/Pipe.cs b/HStation.RevitDev/RevitDataExport/Parser/Pipe.cs
index 47c1747..b137a9e 100644
--- a/HStation.RevitDev/RevitDataExport/Parser/Pipe.cs
+++ b/HStation.RevitDev/RevitDataExport/Parser/Pipe.cs
@@ -57,14 +57,14 @@
                 var flowSpeed = ParameterOperator.GetParameterValueAsString(pipe, "娴侀��");
                 var pressureLoss = ParameterOperator.GetParameterValueAsString(pipe, "鍘嬪姏鎹熷け");
                 var specificFriction = ParameterOperator.GetParameterValueAsString(pipe, "姣旀懇闃�");
-                result.Id = elemModel.Id;
-                result.LinkIds = ElementExtense2.GetLinkedElementIds(elemModel.Id);
-                result.Diameter = diameter;
-                result.Length = length;
-                result.Flow = flow;
-                result.FlowSpeed = flowSpeed;
-                result.PressureLoss = pressureLoss;
-                result.SpecificFriction = specificFriction;
+                result.缂栧彿 = elemModel.缂栧彿;
+                result.杩炴帴鏋勪欢 = ElementExtense2.GetLinkedElementIds(elemModel.缂栧彿);
+                result.鐩村緞 = diameter;
+                result.闀垮害 = length;
+                result.娴侀噺 = flow;
+                result.娴侀�� = flowSpeed;
+                result.鍘嬪姏鎹熷け = pressureLoss;
+                result.姣旀懇闃� = specificFriction;
             }
 
             return result;
@@ -110,19 +110,19 @@
             result.Add(new Tuple<string, string>($"闀垮害", (decimal.Parse(length.ToString()) / 1000).ToString()));
 
             // 娴侀噺
-            var flow = ParameterOperator.GetParameterValueAsDouble(pipe, "娴侀噺");
+            var flow = ParameterOperator.GetParameterValueAsString(pipe, "娴侀噺");
             result.Add(new Tuple<string, string>($"娴侀噺", flow.ToString()));
 
             // 娴侀��
-            var flowSpeed = ParameterOperator.GetParameterValueAsDouble(pipe, "娴侀��");
+            var flowSpeed = ParameterOperator.GetParameterValueAsString(pipe, "娴侀��");
             result.Add(new Tuple<string, string>($"娴侀��", flowSpeed.ToString()));
 
             // 鍘嬪姏鎹熷け
-            var pressureLoss = ParameterOperator.GetParameterValueAsDouble(pipe, "鍘嬪姏鎹熷け");
+            var pressureLoss = ParameterOperator.GetParameterValueAsString(pipe, "鍘嬪姏鎹熷け");
             result.Add(new Tuple<string, string>($"鍘嬪姏鎹熷け", pressureLoss.ToString()));
 
             // 姣旀懇闃�
-            var specificFriction = ParameterOperator.GetParameterValueAsDouble(pipe, "姣旀懇闃�");
+            var specificFriction = ParameterOperator.GetParameterValueAsString(pipe, "姣旀懇闃�");
             result.Add(new Tuple<string, string>($"姣旀懇闃�", specificFriction.ToString()));
             return result;
         }

--
Gitblit v1.9.3