# How to determine the centerline of a beam

**URL:** <https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770>\
**Category:** Uncategorized\
**Created:** [June 16, 2025, 11:21pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770 "2025-06-16T23:21:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 16, 2025, 11:21pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/1 "2025-06-16T23:21:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/6/56235ce1de9e9f086f3707a040ea8993240a31ba.png)  
Hello everyone, I am creating a beam from a CAD file, after inserting 2 straight lines of the beam, I created 4 points, 2 starting points and 2 ending points, I want to determine 2 short edges created by 4 points of a beam and get the coordinates of the midpoint of the 2 short edges and then connect them into 1 axis of the beam. I don’t know if that’s possible, I hope everyone can help, thank you everyone for reading the article.

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [June 17, 2025, 4:58am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/2 "2025-06-17T04:58:01Z")

</div>

How about this?

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

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1041e70fdca99b74f2cdf3afc00f70d9725f81d0.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 17, 2025, 5:33am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/3 "2025-06-17T05:33:46Z")

</div>

probably you more after Element.GetActualLocation..

 ![Skærmbillede 2025-06-17 073234](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f57d7b6a20be4a8e6cfe608e618345d50bba7972.png)

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 17, 2025, 6:06am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/4 "2025-06-17T06:06:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/7/574c1a3a9f7cc8c480307debc7255333521181af.png)  
Thanks for your reply, but the problem here is that I want to create a beam from 2 straight lines running parallel to the beam, which are the 2 outer lines of the beam, and I want to find the center line between those 2 lines to place the beam along the center line, not place the beam on a line.

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 17, 2025, 6:08am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/5 "2025-06-17T06:08:59Z")

</div>

Thanks for your reply, could you please see the photo below?

---

<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:** [June 17, 2025, 6:15am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/6 "2025-06-17T06:15:51Z")

</div>

Curve.PointAtParameter \> List.Flatten \> Line.ByBestFitThroughPoints

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 17, 2025, 6:25am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/7 "2025-06-17T06:25:57Z")

</div>

arhh if i understand 😉 i would first pair these lines up there are parallel, and again by distance, create a surface by loft and then use isolines at 0,5

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 17, 2025, 6:41am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/8 "2025-06-17T06:41:49Z")

</div>

![Skærmbillede 2025-06-17 084121](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/a/fa9f25cb303c3ec6ff54f1e2f4c06763cada3fb9.png)

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 17, 2025, 9:57am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/9 "2025-06-17T09:57:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1025d3af64ef3b878ce7b5571f448feeb2d44a1d.png)  
Great, I understand your way of doing it is to group lines with distance \< 1500 and then divide, but if the case is 2 beams beveled together like the picture, it seems that it cannot be grouped, right?

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 17, 2025, 9:58am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/10 "2025-06-17T09:58:05Z")

</div>

Thank you very much, I will try your way to see the results.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 17, 2025, 10:55am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/11 "2025-06-17T10:55:50Z")

</div>

thats should the group line parallel node from genius loci handle…have you tried ?

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 17, 2025, 3:48pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/12 "2025-06-17T15:48:15Z")

</div>

Thank you very much, I will try your way.

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 18, 2025, 1:35am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/13 "2025-06-18T01:35:34Z")

</div>

I tried your way, the result is great, thanks again for helping me

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 20, 2025, 3:10am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/14 "2025-06-20T03:10:00Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6cfe657f0ddd793b14a5bcb029d19c79e3968b33.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/a/5aaa0ac2be0e50d14cd18df61180d1625bd4ec5e.png)  
Hi, I’m having the following trouble while testing Dynamo this problem, can you give me some advice on this case, I don’t understand why but the red beam can’t create surface and center lines like the green beams, thank you very much

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 20, 2025, 5:00am UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/15 "2025-06-20T05:00:23Z")

</div>

yeah as i always say many things can go wrong when work with cad in revit…but in the end its just about sorting :)…here is a post there probably could give inspiration…[Create Beams From CAD works only perpenticular geometry - #24 by arincakkin](https://forum.dynamobim.com/t/create-beams-from-cad-works-only-perpenticular-geometry/91830/24), and there should many other examples here in the forum, where you can see how many things there can go wrong, and we need sort deeper or another way,depends, so play around with it 😉 😉

> [@Modeling Beams From Cad Dynamo Revit](https://forum.dynamobim.com/t/modeling-beams-from-cad-dynamo-revit/100466/17):
>
> which revit version are you in, and which version is your spring node ? and you are sure the sphere intersect ? as here

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 20, 2025, 12:22pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/16 "2025-06-20T12:22:08Z")

</div>

I am using RV 2023, I tried to solve the problem but it is really stuck

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 20, 2025, 12:24pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/17 "2025-06-20T12:24:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7e2b99595203841004ae139eb14d156032305db.png)  
I checked and the lines are parallel in pairs but it can’t create a plane and then give the center line.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 20, 2025, 12:39pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/18 "2025-06-20T12:39:35Z")

</div>

yeps a lot can go wrong 😉 😉 try share you cad and can take a look next week, im on my way to copenhell, and there is not so much dynamo 😉 ;)…but sometimes i have recived some cad files where there are so messy, so the time i put in it cant match the time, if the cadfolks just create centerlines on own layers…

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 20, 2025, 2:04pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/19 "2025-06-20T14:04:32Z")

</div>

I have cleaned the file and separated it into 2 different layers, if you have time please help me see it, I appreciate you very much, I have left the file below

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

---

<div class="post-metadata">

**Author:** ![bimtanpd](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@bimtanpd](https://forum.dynamobim.com/u/bimtanpd)\
**Post date:** [June 20, 2025, 3:34pm UTC](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770/20 "2025-06-20T15:34:21Z")

</div>

[S-012-001\_Structure plan.dwg](https://forum.dynamobim.com/uploads/short-url/6JOxmBX4lHxTJ7POBrLBFgatbMU.dwg) (376.0 KB)  
This is my CAD file.

[Next page](https://forum.dynamobim.com/t/how-to-determine-the-centerline-of-a-beam/110770.md?page=2)
