Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Space Parameters - Specified Supply Airflow.

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
juanquis_avila
1003 Views, 7 Replies

Space Parameters - Specified Supply Airflow.

juanquis_avila
Contributor
Contributor

Hi everyone,

 

I'm struggling with some issue extracting information from a certain space parameter (Specified Supply Airflow CFM).

For example, a single space has got 2400 CFM within Specified Supply Airflow in Revit but when I get the parameter value through Revit API the value is like 1 or 0.40 which doesn't make sense since the value in revit is 2400CFM.

 

Thank you very much for your help.

 

Juan Avila

0 Likes

Space Parameters - Specified Supply Airflow.

Hi everyone,

 

I'm struggling with some issue extracting information from a certain space parameter (Specified Supply Airflow CFM).

For example, a single space has got 2400 CFM within Specified Supply Airflow in Revit but when I get the parameter value through Revit API the value is like 1 or 0.40 which doesn't make sense since the value in revit is 2400CFM.

 

Thank you very much for your help.

 

Juan Avila

Labels (2)
7 REPLIES 7
Message 2 of 8

jeremy_tammik
Autodesk
Autodesk

You need to be aware that all Revit API data and parameter values are provided in internal Revit database units, not in the project units displayed in the user interface:

 

Read one of the very first posts by The Building Coder from September 2008:

 

https://thebuildingcoder.typepad.com/blog/2008/09/units.html

 

As you can see, I was confronted with the same question pretty early on.

 

Here are many other unit-related articles by The Building Coder:

 

https://thebuildingcoder.typepad.com/blog/units

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

You need to be aware that all Revit API data and parameter values are provided in internal Revit database units, not in the project units displayed in the user interface:

 

Read one of the very first posts by The Building Coder from September 2008:

 

https://thebuildingcoder.typepad.com/blog/2008/09/units.html

 

As you can see, I was confronted with the same question pretty early on.

 

Here are many other unit-related articles by The Building Coder:

 

https://thebuildingcoder.typepad.com/blog/units

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 8

juanquis_avila
Contributor
Contributor

Hi Jeremy. Thank you very much for your response.

It seems like the problem is not about units. When I get the value from "Specified Supply Airflow" space parameter, I can tell that revit api it's retrieving this value with CFM unit, same unit I see on my revit side but values are not matching between revit desktop and revit api. 

0 Likes

Hi Jeremy. Thank you very much for your response.

It seems like the problem is not about units. When I get the value from "Specified Supply Airflow" space parameter, I can tell that revit api it's retrieving this value with CFM unit, same unit I see on my revit side but values are not matching between revit desktop and revit api. 

Message 4 of 8

jeremy_tammik
Autodesk
Autodesk

Sounds like a misunderstanding to me.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

Sounds like a misunderstanding to me.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 8

juanquis_avila
Contributor
Contributor
Accepted solution

Dear Jeremy,

Thank you very much for your answer.

 

Let me show you the whole picture. As you can see in the enclosed picture, values between revit api and revit are not matching. Within revit I can say that suplly airflow for that space is 55 CFM but in revit api I see that paremeter value as 0.91 CFM. I've checked and units are set to be CFM.

Thank you so much for your kind assistence. 

 

juanquis_avila_0-1612906499389.png

 

0 Likes

Dear Jeremy,

Thank you very much for your answer.

 

Let me show you the whole picture. As you can see in the enclosed picture, values between revit api and revit are not matching. Within revit I can say that suplly airflow for that space is 55 CFM but in revit api I see that paremeter value as 0.91 CFM. I've checked and units are set to be CFM.

Thank you so much for your kind assistence. 

 

juanquis_avila_0-1612906499389.png

 

Message 6 of 8

jeremy_tammik
Autodesk
Autodesk
Accepted solution

You have set CFM as display units in the user interface.

  

You cannot modify the internal database unit. It is fixed.

  

So, your snapshot shows that 1.0 internal database unit equals 55.03 / 0.917 CFM (or maybe 0.917 / 55.03 CFM?).

  

Please study The Building Coder explanations of units:

 

https://thebuildingcoder.typepad.com/blog/units

 

Here is the first one, for starters:

 

https://thebuildingcoder.typepad.com/blog/2008/09/units.html

  

I am repeating myself...

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

You have set CFM as display units in the user interface.

  

You cannot modify the internal database unit. It is fixed.

  

So, your snapshot shows that 1.0 internal database unit equals 55.03 / 0.917 CFM (or maybe 0.917 / 55.03 CFM?).

  

Please study The Building Coder explanations of units:

 

https://thebuildingcoder.typepad.com/blog/units

 

Here is the first one, for starters:

 

https://thebuildingcoder.typepad.com/blog/2008/09/units.html

  

I am repeating myself...

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 7 of 8

manuel.solis.lopez
Contributor
Contributor
Accepted solution

Internal Units for Air Flow are not Cubic Feet per Minute but Cubic Feet per Second. The Revit Documentation is quite clear: Units 
Just Convert from internal units to the wished output unit.

Space space;
double c0 = UnitUtils.ConvertFromInternalUnits(space.DesignSupplyAirflow, UnitTypeId.CubicFeetPerMinute);

 

0 Likes

Internal Units for Air Flow are not Cubic Feet per Minute but Cubic Feet per Second. The Revit Documentation is quite clear: Units 
Just Convert from internal units to the wished output unit.

Space space;
double c0 = UnitUtils.ConvertFromInternalUnits(space.DesignSupplyAirflow, UnitTypeId.CubicFeetPerMinute);

 

Message 8 of 8

juanquis_avila
Contributor
Contributor

Dear Jeremy,

 

Thank you very much for your patience and help. I've been working for several time with these parameters and is the first time I deal with this unit problem. I will take my time to study the links you have shared 😄 thank you very much.

 

cheers 😄

0 Likes

Dear Jeremy,

 

Thank you very much for your patience and help. I've been working for several time with these parameters and is the first time I deal with this unit problem. I will take my time to study the links you have shared 😄 thank you very much.

 

cheers 😄

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report