lixiaojun
2024-09-19 1062dfc5f3d522a880e54d94eb87478c08013c96
Service/HStation.Service.Revit.Core/04-service/01-json/RevitJsonHelper.cs
@@ -743,11 +743,11 @@
                                }
                                if (exchanger.Diameter < 0.1)
                                {
                                    exchanger.Diameter = 0.1;
                                    exchanger.Diameter = 500;
                                }
                                if (exchanger.Roughness < 0.1)
                                {
                                    exchanger.Roughness = 0.1;
                                    exchanger.Roughness = 110;
                                }
                                model.Exchangers.Add(exchanger);
                            }
@@ -827,11 +827,11 @@
                                }
                                if (pipe.Diameter < 0.1)
                                {
                                    pipe.Diameter = 0.1;
                                    pipe.Diameter = 500;
                                }
                                if (pipe.Roughness < 0.1)
                                {
                                    pipe.Roughness = 0.1;
                                    pipe.Roughness = 110;
                                }
                                model.Pipes.Add(pipe);
                            }
@@ -911,11 +911,11 @@
                                }
                                if (translation.Diameter < 0.1)
                                {
                                    translation.Diameter = 0.1;
                                    translation.Diameter = 500;
                                }
                                if (translation.Roughness < 0.1)
                                {
                                    translation.Roughness = 0.1;
                                    translation.Roughness = 110;
                                }
                                model.Translations.Add(translation);
                            }
@@ -1057,6 +1057,11 @@
                                    valve.MinorLoss = minorLoss;
                                }
                                if (valve.Diameter < 0.1)
                                {
                                    valve.Diameter = 500;
                                }
                                valve.ValveType = jobject[RevitJsonProp.ValveType].ToString();
                                valve.ValveSetting = jobject[RevitJsonProp.ValveSetting].ToString();
                                model.Valves.Add(valve);