| | |
| | | } |
| | | 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); |
| | | } |
| | |
| | | } |
| | | 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); |
| | | } |
| | |
| | | } |
| | | 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); |
| | | } |
| | |
| | | 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); |