# Duct Fitting Midpoint

**URL:** <https://forum.dynamobim.com/t/duct-fitting-midpoint/24457>\
**Category:** Revit\
**Created:** [August 3, 2018, 3:31pm UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457 "2018-08-03T15:31:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [August 3, 2018, 3:31pm UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/1 "2018-08-03T15:31:43Z")

</div>

Hi All,

Is it possible to find out the mid point of duct fittings (transitions, bends, elbows…) I and trying to tag them using dynamo and I cannot find the mid point. I have used element.location node and got the curve for ducts but for fittings I cannot get the curve.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/838d33f4d31e3823f42d864c69face880b80a594.png)  
[TAGS-MC test.dyn](https://forum.dynamobim.com/uploads/short-url/keSm5mlRvgsvlxx4zmwKWDjzdC6.dyn) (79.7 KB)

---

<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:** [August 3, 2018, 3:36pm UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/2 "2018-08-03T15:36:35Z")

</div>

Get the top surface of duct fittings and use Surface.PointAtParameter node with 0.5 as U,V.

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [August 4, 2018, 1:55pm UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/3 "2018-08-04T13:55:23Z")

</div>

How do get the top surface. I tried this

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/77cf22c72449d0d5528d647fa2279a4ab20b930f.png)  
from [https://landarchbim.com/2016/04/06/extract-top-and-bottom-floor-surfaces/](https://landarchbim.com/2016/04/06/extract-top-and-bottom-floor-surfaces/) and revit went into infinite loop. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 4, 2018, 2:40pm UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/4 "2018-08-04T14:40:33Z")

</div>

If you follow Kulkul’s advice, you can try this

 ![duct%20fitting%20faces](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90d5878e5bf63c171ce5fc0281288ca125730466.png)

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [August 5, 2018, 3:01am UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/5 "2018-08-05T03:01:11Z")

</div>

That Worked @Alban_de_Chasteigner but because the fittings shapes vary it works for some and for some its in the start/end point. Still it is better than what I had and there is cleaning up to do. Thank you both @Kulkul and @Alban_de_Chasteigner

---

<div class="post-metadata">

**Author:** ![Harywijaya.2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/harywijaya.2/32/55977_2.png) [@Harywijaya.2](https://forum.dynamobim.com/u/Harywijaya.2)\
**Post date:** [September 7, 2018, 3:52am UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/6 "2018-09-07T03:52:02Z")

</div>

Hy @avinash.hv  
May i know your progress now?  
due to i’ve same research with you where i want to tag duct fitting but only 1 item can tagging 😅  
This is my dynamo

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/78f54487d929a804dbc5537ae28961c4b6b2d7b8.png) [DUCT FITTING.dyn](https://forum.dynamobim.com/uploads/short-url/t2FIi1qNe9spRyoejnVS3GEop7i.dyn) (22.4 KB)

and this result  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22274c63c35b81781ffa35d306dafd9faee6b004.png)  
Sorry, I am still newbie ^^

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [September 7, 2018, 12:56pm UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/7 "2018-09-07T12:56:03Z")

</div>

Hi @Harywijaya.2  
The reason you get only one tag is because you are using get item at index. My guess is, you are trying to skip every second item is that right ? We all are beginner mate so don’t worry. I got some fittings tags working but most didn’t. What I did was passed all the fittings through element.location node and used the points directly place the tags. This will place tags at start/end point. Dont have access to computer now. Will send what I did tomorrow

---

<div class="post-metadata">

**Author:** ![Harywijaya.2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/harywijaya.2/32/55977_2.png) [@Harywijaya.2](https://forum.dynamobim.com/u/Harywijaya.2)\
**Post date:** [September 9, 2018, 1:24am UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/8 "2018-09-09T01:24:59Z")

</div>

Alright @avinash.hv, Thank you before for sharing what you did

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [September 10, 2018, 6:31am UTC](https://forum.dynamobim.com/t/duct-fitting-midpoint/24457/9 "2018-09-10T06:31:11Z")

</div>

Hi @Harywijaya.2

This is what I did finally, Remember to exclude flanges as they will also be numbered. If you get the tag at center of every fitting let me know.[Duct fittngs tag.dyn](https://forum.dynamobim.com/uploads/short-url/AivG5Dg1lgOoSaipzcqZ5UihkTH.dyn) (14.5 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/9/39fb82640d7b9550d3e603acaf1ec9995819cd07.png)
