Hi everyone, I am moving my first steps in pyRevit. I am using a metric template within my file. I am getting flow value from the ducts selected in Revit using this script:
for el in selection:
The values I obtain are different from the ones I can read in the properties palette, which are displayed in m^3/h. I tryed to solve the problem by using variables to convert the values directly inside pyRevit, but it is tricky because I have to pay attention every time I deal with numeric values. Another way I tryed is to obtain value .AsValueString(), and but I don’t think this is the best method, because in this case I obtain strings that report also the unit of measure. My question is: is there a way to use directly the same unit of measure automatically, to avoid undesired issues in my calculations?
Thank you in advice for your attention