# Getting centerlines of ducts in Dynamo

**URL:** <https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127>\
**Category:** Geometry\
**Created:** [December 9, 2016, 12:30pm UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127 "2016-12-09T12:30:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pal\_Roe\_Larsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pal_roe_larsen/32/9501_2.png) [@Pal\_Roe\_Larsen](https://forum.dynamobim.com/u/Pal_Roe_Larsen)\
**Post date:** [December 9, 2016, 12:30pm UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127/1 "2016-12-09T12:30:47Z")

</div>

I have a set of ducts in Revit and I need the centerline of these ducts as I want to attach some objects following their path. I have never worked with ducts and Dynamo before, so any help is appreciated. I tried the “Center\_line\_of\_Revit\_MEP\_Pipe” package, but didn’t get it to work 😕

---

<div class="post-metadata">

**Author:** ![Tom\_Kunsman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_kunsman/32/133796_2.png) [@Tom\_Kunsman](https://forum.dynamobim.com/u/Tom_Kunsman)\
**Post date:** [December 9, 2016, 12:34pm UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127/2 "2016-12-09T12:34:11Z")

</div>

Can you post some screen captures of your work and errors you might be getting? It will only help those trying to help you out.

---

<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:** [December 9, 2016, 1:15pm UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127/3 "2016-12-09T13:15:26Z")

</div>

Hi @Pal_Roe_Larsen

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/02fc93034fdbc8feb5934bf933a95cd82816ec23.png)

---

<div class="post-metadata">

**Author:** ![Pal\_Roe\_Larsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pal_roe_larsen/32/9501_2.png) [@Pal\_Roe\_Larsen](https://forum.dynamobim.com/u/Pal_Roe_Larsen)\
**Post date:** [December 9, 2016, 2:04pm UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127/4 "2016-12-09T14:04:42Z")

</div>

Aah, nice. It only got me halfway though. I need points along the centerlines, as you can see me trying below. However, I end up with a bunch of empty lists. I might be using the wrong nodes.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63e2802d13a1f59bccd26ca570c49f7e2672c8c7.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:** [December 9, 2016, 3:50pm UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127/5 "2016-12-09T15:50:10Z")

</div>

Hi @Pal_Roe_Larsen

I don’t think its possible to get centerline from “Ducts - Centerline”. However you can get the ducts Centerlines from ducts like this:

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

---

<div class="post-metadata">

**Author:** ![Pal\_Roe\_Larsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pal_roe_larsen/32/9501_2.png) [@Pal\_Roe\_Larsen](https://forum.dynamobim.com/u/Pal_Roe_Larsen)\
**Post date:** [December 12, 2016, 7:41am UTC](https://forum.dynamobim.com/t/getting-centerlines-of-ducts-in-dynamo/8127/6 "2016-12-12T07:41:10Z")

</div>

Sweet! That works as a charm!
