# UNITS are confusing...!

**URL:** <https://forum.dynamobim.com/t/units-are-confusing/29246>\
**Category:** Uncategorized\
**Created:** [December 4, 2018, 5:53am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246 "2018-12-04T05:53:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 4, 2018, 5:53am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/1 "2018-12-04T05:53:51Z")

</div>

hello guys…!  
Can some one explain me what unit shoul I expect from dynamo geometry its really confusing  
i have an element geometry and volume extracted from it should it follow Revit units? or imperial?  
or dynamo has some special units?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/1/811ea2f837ac09df040927d3ebd4fd4843d25d3a.png)

The first time I noticed the output in cu.ft so created a coustom node to change cu.ft to project units  
but as I change the units to mm3 to check it its returns in m3 ,No idea whats happening plz help me out with the answer to “What units does the nodes involving geometry follow?”

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 4, 2018, 6:21am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/2 "2018-12-04T06:21:48Z")

</div>

Just in the same graph with different elements,  
units are set to m3 and the node gives values in mm3.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/8/c8521ceb9830b1d49da57f56d85c4a0c7d9cbeaa.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [December 4, 2018, 6:31am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/3 "2018-12-04T06:31:36Z")

</div>

Have a look here:  
[https://www.revitforum.org/dynamo-bim/34248-dynamo-export-unit-conversion-query.html](https://www.revitforum.org/dynamo-bim/34248-dynamo-export-unit-conversion-query.html)

Apparently @solamour dabbles in forums outside of this one…

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 4, 2018, 6:41am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/4 "2018-12-04T06:41:01Z")

</div>

Hi @jacob.small, I couldn’t really relate this to the post as they have a parameter and trying to get units from it ,whereas here Its a geometry and I am confused on how to extract units information from geometry.  
Also, I understand that geometry is unit less but still it has to have a unit when expressed as volume right?  
Maybe I didn’t get the catch,It would be great if you brief a bit about it .

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [December 4, 2018, 7:23am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/5 "2018-12-04T07:23:02Z")

</div>

Whats the unit conversion between the sheet bounding box and the view ports? What do would I scale the view port rectangles down to, to fit into the sheet rectangle? Am I missing something super simple? 😅

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2bb468c3ac737f67a5926673f8cf8dadec7b9bfc.png)

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [December 4, 2018, 7:47am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/6 "2018-12-04T07:47:18Z")

</div>

Viewports are a area around your virtual building/element that are scaled accordingly to the view scaling, so these should equal that area from this space not the scaled version.

This is because they are physically there in the 3d space, where as a title block is not in this same space so is the area directly given.

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 4, 2018, 9:46am UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/7 "2018-12-04T09:46:09Z")

</div>

Hi @Brendan_Cassidy  
The problem here is in both the graphs (in solid .volume and width ,height ect of viewport) dynamo tries to give you a number What is the unit of the number its giving you? and what decide the unit of these numbers?

---

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [December 4, 2018, 2:28pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/8 "2018-12-04T14:28:50Z")

</div>

I have almost a thousand posts on that forum and all of them are about Dynamo 😃

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [December 4, 2018, 3:55pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/9 "2018-12-04T15:55:54Z")

</div>

Hi @saju_autodesk  
Would you mind dropping a sample rvt & dyn which has the different elements giving different unit outputs?

Thanks,

Mark

Edit: as Martin Spence has just reminded me, if you get the parameters via Python as doubles, (unconverted) they will always be in imperial. This is reliable but more work…

> [@Units in dynamo and python](https://forum.dynamobim.com/t/units-in-dynamo-and-python/29251/3):
>
> Be aware when you obtain parameter values using python via API methods. It will return internal units if you do not convert the values: From the example parameter, we can obtain the numeric value as a double or as a string representation: String representation: import clr #Import the Revit API clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import \* pipe = UnwrapElement(IN[0]) x = pipe.get\_Parameter(BuiltInParameter.RBS\_PIPE\_OUTER\_DIAMETER).AsValueSt…

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [December 4, 2018, 10:54pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/10 "2018-12-04T22:54:09Z")

</div>

Have you thought about putting dimensions onto the views cropped region in revit as a test, because for my quick test i just did that and this is what the units seem to be. They are in mm and they match the size of the cropped region(not annotation region) which you can see from the following image

 ![bounding%20box](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/006afadc337a3c671c14c1506a58a2611f578255.jpeg)

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 5, 2018, 1:37pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/11 "2018-12-05T13:37:01Z")

</div>

HI @Mark.Ackerley

here are the files I am working on …  
[final formwork\_No errors.dyn](https://forum.dynamobim.com/uploads/short-url/olur4MNFtp3YenLTEoMouKiJTfz.dyn) (256.1 KB)

The Revit file is 5+ mb. and can’t upload here but is same as the sample file that comes in Revit 2018 \<\<rst\_advanced\_sample\_project\>\>

The files work perfectly until the units aren’t changed. I wanted to see if the graph works for metric as well and their starts the problem, sometimes the parameter I wish set comes in mm and sometimes in meters and rarely even in ft. ( of course, I closed and reopen every time I ran it).

Thus came my question how to ask dynamo to give you volume and area in the units set in Revit.

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [December 5, 2018, 1:38pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/12 "2018-12-05T13:38:58Z")

</div>

Hi @Brendan_Cassidy,  
Thanks, but did you check after swapping the units in revit…? or using the same graph in imperial projects?

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [December 5, 2018, 4:55pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/13 "2018-12-05T16:55:20Z")

</div>

I followed the same approach as what i did in my reply above, though i changed project units in between with my findings below.

Started with imperial template:

 ![bounding](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f2517c56cbb0a3ebc13b1264c38c5ed07cd9136f.png)

Changed units to Metric:

 ![bounding2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7d872af319d2e5081b27ac6d96c36b266853c1c2.png)

---

<div class="post-metadata">

**Author:** ![JIHWANLEE89](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@JIHWANLEE89](https://forum.dynamobim.com/u/JIHWANLEE89)\
**Post date:** [March 10, 2022, 11:44pm UTC](https://forum.dynamobim.com/t/units-are-confusing/29246/14 "2022-03-10T23:44:24Z")

</div>

Hi All,

There is a video showing how to manage units and decimals

[Dynamo - Control Units and Decimals](https://www.youtube.com/watch?v=Vs1yIBc8fTg&ab_channel=BIMTAMIN)

I hope it is helpful!! 😆
