# How to get Cuboid of slanted beam or column?

**URL:** <https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150>\
**Category:** Revit\
**Created:** [September 13, 2016, 4:15am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150 "2016-09-13T04:15:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vo\_Minh\_Doan](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Vo\_Minh\_Doan](https://forum.dynamobim.com/u/Vo_Minh_Doan)\
**Post date:** [September 13, 2016, 4:15am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/1 "2016-09-13T04:15:03Z")

</div>

Hi all!  
I am trying to get the cuboid of slanted beam or beam are not aligned to x, y axis (Like attached pictures).  
I used BoundingBox.ByGeometryCoordinateSystem node then used BoundingBox.ToCuboid but the results just not what i expected.  
I think the problem is cs input.

Someone here can help me?  
Thanks!

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/a/a496e3b0559205c264c9a3a6d5c60792451dcd38.PNG) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/72357dcc1a2502c338092fd1229db6b47545261c.PNG)

---

<div class="post-metadata">

**Author:** ![Vo\_Minh\_Doan](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Vo\_Minh\_Doan](https://forum.dynamobim.com/u/Vo_Minh_Doan)\
**Post date:** [September 13, 2016, 4:19am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/2 "2016-09-13T04:19:02Z")

</div>

I expect the length, width, height of the cuboids match with the size of beams.

---

<div class="post-metadata">

**Author:** ![Jimmy\_G](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Jimmy\_G](https://forum.dynamobim.com/u/Jimmy_G)\
**Post date:** [September 13, 2016, 7:20am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/3 "2016-09-13T07:20:47Z")

</div>

if you extract the elements faces, then use the faces to make a solid you’ll end up with a solid that exactly matches your geometry.  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/2/269e536083d211677118933e25746e461e2af8d0.JPG)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [September 13, 2016, 7:57am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/4 "2016-09-13T07:57:09Z")

</div>

Why not extract the solid directly? Try this:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/eecc566c6310464af8fa3e93c168f90cc4c3c25d.png)

---

<div class="post-metadata">

**Author:** ![Vo\_Minh\_Doan](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Vo\_Minh\_Doan](https://forum.dynamobim.com/u/Vo_Minh_Doan)\
**Post date:** [September 13, 2016, 10:53am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/5 "2016-09-13T10:53:43Z")

</div>

Dear Dimitar,  
Thanks for your reply.  
I tried your solution but with some specified situations such as beam is cut by column (Like a picture). The results is so confused.  
That’s why i want to try to use boundingbox.  
Can you help?

By the way, do you know which node can divide one incoherent solid to many coherent solids?  
Thanks a lot.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/1/1a60ffd3f6ae545a2437225520df311cd348a8f9.PNG) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/e15af6f14f385dc4c0f632f6d5a28fc6f1248adb.PNG) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/e26848370cf6a7fb6282b5d2d04dfe41a3986be6.PNG)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [September 13, 2016, 7:59pm UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/6 "2016-09-13T19:59:44Z")

</div>

> [@Vo\_Minh\_Doan](#):
>
> I tried your solution but with some specified situations such as beam is cut by column (Like a picture). The results is so confused.

Hi Vo,

It would be better if you can drop your rvt file and dyn file here. Thanks 🙂

> [@Vo\_Minh\_Doan](#):
>
> which node can divide one incoherent solid to many coherent solids?

For your second query create new topic please.

---

<div class="post-metadata">

**Author:** ![Vo\_Minh\_Doan](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@Vo\_Minh\_Doan](https://forum.dynamobim.com/u/Vo_Minh_Doan)\
**Post date:** [September 14, 2016, 2:40am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/7 "2016-09-14T02:40:37Z")

</div>

Thanks for your help.  
I attached the Revit and dynamo file here. The size of two highlight beams are quite confused, just not like others.

[Get Cuboid Of Beam.dyn](https://forum.dynamobim.com/uploads/short-url/9xssVliJMBEdd70V7iWqNSDlFmJ.dyn) (7.3 KB)  
[Test Geometry of slanted beam.rvt](https://forum.dynamobim.com/uploads/short-url/7FdWjOxnMML0QwNJFxdeN0tJJXb.rvt) (2.7 MB)

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/1/1fdae176a56073eaf356690acbb73b6139a33725.PNG)  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/e19ee0fd8b32117933084e18856daf4619d5f0ae.PNG)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [September 14, 2016, 3:53am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/8 "2016-09-14T03:53:33Z")

</div>

In that case, you could get the beam’s location line, create a rectangular profile with the size of the beam (extracted from its type properties), and sweep the two.

---

<div class="post-metadata">

**Author:** ![AmrinderWaraich](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@AmrinderWaraich](https://forum.dynamobim.com/u/AmrinderWaraich)\
**Post date:** [August 10, 2017, 7:24pm UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/9 "2017-08-10T19:24:50Z")

</div>

guys after edge curve geometry can you select specific edge and take its length

---

<div class="post-metadata">

**Author:** ![jamess166](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@jamess166](https://forum.dynamobim.com/u/jamess166)\
**Post date:** [April 6, 2018, 3:17am UTC](https://forum.dynamobim.com/t/how-to-get-cuboid-of-slanted-beam-or-column/6150/10 "2018-04-06T03:17:08Z")

</div>

I have this, but it does not work for inclined beams[MET-CA\_Vigas\_Perimetro.dyn](https://forum.dynamobim.com/uploads/short-url/ez8rop7V71VJDGkx22rtb1RZnDy.dyn) (67.4 KB)
