FluidType.GetTemperature method bug in Revit 2026
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Something has changed in FluidType.GetTemperature method in Revit 2026 and I cannot figure out how to use it so that it works every case. Problems occurs some Revit template immediately but some template it exist after you and new fluid temperature. Problem exists also Revit UI but probably it is same change in FluidType.GetTemperature method. This problem started to occur in Revit 2026 and earlier I have not noticed anything similar.
Here is step to reproduce.
1. Open new project by using DefaultMetric template
2. Check Hydronic Supply Fluid temperature, viscosity and density. Everything looks good. I have also added more decimals to Fluid temperature from Project Units but it doesn't affect how it works.
3. Add new fluid temperature for example 45 celsius for Water.
4. After that check system type fluid temperature, density and viscosity again. Viscosity and density is zero because I suspect that FluidType.GetTemperature method return null when temperature from Pipe system type is used.
When I make my own application which try to also read this temperature by using FluidType.GetTemperature method I also got null after new temperature has been added to the fluid. Some reason if I use PipeSystemType temperature rounding with 2 decimal before I give value to GetTemperature method then it seems to work. However I don't want to use this kind of workaround before Autodesk confirm how this method should be used.
So I hope so that Autodesk developers checks what has been changed in FluidType.GetTemperature method in Revit 2026. Is there changed some tolerance values how temperature is found?
I noticed similar problem also other Revit template and some template it exist without adding any new temperature like "Metric Multi-Discipline". First I though that should be some template problem but now I suspect bug in FluidType.GetTemperature method.
Here is also sample code how I used it:
Returned FluidTemperature class contains viscosity and density properties which I cannot now read.