# Set parameter by name wrong values

**URL:** <https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534>\
**Category:** Developers\
**Tags:** excel, dynamo\
**Created:** [May 1, 2018, 2:08pm UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534 "2018-05-01T14:08:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clement](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Clement](https://forum.dynamobim.com/u/Clement)\
**Post date:** [May 1, 2018, 2:08pm UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/1 "2018-05-01T14:08:26Z")

</div>

Hi,

I have some problems to import parameters values into Revit.  
The dynamo script reads my excel file without problem, the list is ok.  
But then the value writtent in Revit are completely wrong.  
This are the values inserted in Revit (7237.7860 m³/h and 7339.7266m³/h) but in my Excel file the values are 63 and 64.

How am I supposed to fix that?

Thanks.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/10af9b019eec716e421bac3e8f869cb20306ee1e.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f5661279ff4bdfaf71faa080c1ff79d0126034da.png)

---

<div class="post-metadata">

**Author:** ![Clement](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Clement](https://forum.dynamobim.com/u/Clement)\
**Post date:** [May 1, 2018, 4:00pm UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/3 "2018-05-01T16:00:14Z")

</div>

@erfajo so in Revit, air flows are in ft³/hr?

Edit:  
Just converted the air flows in Excel from m³/h to ft³/h.  
Dynamo still has the correct value but again, Revit’s are completly wrong.

---

<div class="post-metadata">

**Author:** ![lsmm](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@lsmm](https://forum.dynamobim.com/u/lsmm)\
**Post date:** [May 1, 2018, 4:16pm UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/4 "2018-05-01T16:16:19Z")

</div>

Have you tried the MEPover node “SetParameterAsProjectUnits”? Because it sounds like a conversion issue between Revit and Dynamo, but I could be mistaken.

Edit: From a quick Google search it seems that the internal unit for air flow is ft³/min (CFM), does that seem more reasonable?

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [May 2, 2018, 6:01am UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/6 "2018-05-02T06:01:16Z")

</div>

@erfajo is right here.  
I don’t know why exactly it happens but I’ve just checked how it changed and added a calculation within Dynamo and though it’s not ideal it does work.

---

<div class="post-metadata">

**Author:** ![Clement](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Clement](https://forum.dynamobim.com/u/Clement)\
**Post date:** [May 2, 2018, 6:38am UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/7 "2018-05-02T06:38:21Z")

</div>

SetParameterAsProjectUnits works ok.  
This was indeed a unit problem 😕

I wonder if I am going to convert in Excel or Dynamo or use SetParameterAsProjectUnits

Thanks.

---

<div class="post-metadata">

**Author:** ![Clement](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Clement](https://forum.dynamobim.com/u/Clement)\
**Post date:** [May 2, 2018, 7:22am UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/9 "2018-05-02T07:22:53Z")

</div>

@erfajo I added a code block to do the calculation and it is working fine.  
Thanks to all of you !  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ffc90dbde1ab96f623e646e34372337a1c4c66f1.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [May 2, 2018, 7:26am UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/10 "2018-05-02T07:26:25Z")

</div>

Just so you know @erfajo Revit was built in the USA a decade ago and the very first version(s) had no metric in it, it was all imperial 🙂  
Rebuilding a software to go unitless is… a HUGE task:)

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [May 2, 2018, 8:31am UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/12 "2018-05-02T08:31:50Z")

</div>

Why are the US still using imperial measure is … another debate. But in the mean time, the US changing the units of measurements wont solve the issue 🙂  
So we go with simple conversion 🙂

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [May 2, 2018, 6:42pm UTC](https://forum.dynamobim.com/t/set-parameter-by-name-wrong-values/21534/13 "2018-05-02T18:42:24Z")

</div>

I think that One day they wil adapt and need to adapt even the US  
they are almost alone

![svg](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/e/6ee2d9f54981c5fc3ebada5f09ed0dbd246e7f6a.png)

but its harder for a large country to adapt then a little country 😉
