the search couldn’t solve my problem, so maybe somebody can help me here.
what i want to do:
I have 3 lists:
List1: Is a calculated parameter - made out of shared parameters --> final unit --> m3/h
List2: Is a calculated parameter - made out of shared parameters --> final unit --> m3/h
List3: Is a calculated parameter -> from the “area” parameter and an figure -> final unit should be --> m3/h
Out of this three lists - i want to make a “maxlist” for each item. So my code checks, which item of [i] is the biggest a inserts it into my maxlist.
This is already running.
whats the problem:
The calculated parameter wich is calculated from the “area” - which is an original Revit parameter -> is from its value wrong, when i write it into a shared parameter. So i guess i ned to make a conversation…
How do i know - what revit makes out of my m3/h into SI-units ?
The Problem is not the “unit-text-figures” which are added to the numbers.
The Problem is, that Revit does make an difference to the value, when i multiplay the “area” (unit = m2) with an figure (without an unit) when i write the result back to revit in an shared parameter --> which has the unit = m3/h.
When i do the same in Revit in a calcluated parameter, I have to add the “unit” directly in the formular (for example " 1/m²" and " *1 m3/h") to be changed. Thats what I am missing in Dynamo. I can’t tell Revit the real units that it can do the calculation by it self.
Maybe thats not possible…
So i wanted to know, how are you dealing with units…
thank you for reading my problem.
I’am sure - that the problem is on my understanding - on how to handle the “units” in dynamo. But i coulnd’t find an solved MEP problem, which helped me to improve that.
I try do explain my problem in detail:
reading the area from each room out of revit with Element.GetParameterValuebyName --> UNIT="m2"
The node SetParameterAsProjectUnits does the conversation --> so the result, written back to revit ist right.
But i do have to make more calcualtions with the results of the SetParameterAsProjectUnits. The input values to the SetParameterAsProjectUnits aren’t converted… soo i don’t know how to convert them…
I also don’t know how to get the converted results from the SetParameterAsProjectUnits node.
Thanks for the detailed explanation, but I still can’t see why you can’t use those values further down in your graph? The inputs for the SetParameter node are exactly the same as the values in the Revit schedule right?
I can’t seem to replicate your Revit behaviour, I have created a shared parameter which is of type ‘Air Flow’. When I set this value using Dynamo the units get converted just like they would with a native Revit parameter: