# Calculating Conduit Elbow lengths?

**URL:** <https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675>\
**Category:** Revit\
**Tags:** mep\
**Created:** [June 2, 2021, 10:28pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675 "2021-06-02T22:28:30Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 2, 2021, 10:28pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/1 "2021-06-02T22:28:30Z")

</div>

Curious why the “Conduit Length” parameter is different from the total lengths of an elbow’s curves.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/909670be24d3f9856983140b8d14729a826b476a.jpeg)  
Any insights?

PS: total lengths of an elbow’s curves agrees with what gets calculated in Revit’s Conduit Run length.

---

<div class="post-metadata">

**Author:** ![jacobmock3577](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jacobmock3577](https://forum.dynamobim.com/u/jacobmock3577)\
**Post date:** [June 3, 2021, 2:54pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/3 "2021-06-03T14:54:10Z")

</div>

You will need to use the Element.Location node to get the cures and isCurve lengths. Then do the Math.Sum. The script I have here is to give me the selected conduit and conduit fitting total length.

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

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 3, 2021, 6:17pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/4 "2021-06-03T18:17:48Z")

</div>

> [@jacobmock3577](#):
>
> You will need to use the Element.Location node to get the cures and isCurve lengths. Then do the Math.Sum.

I did similar.

But what the heck is the “ **Conduit Length” parameter** in Revit for?

BTW: To round your numbers to 1/16" use:  
`Math.Round(n*16*12,0)/(16*12);`

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 3, 2021, 6:30pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/5 "2021-06-03T18:30:18Z")

</div>

But when I divided the “Conduit Length” parameter values by **3.2366** , I got the geometry curve sums. **WTF?**

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/ae5e9b851e1922108d0ce86f01fe2289ffbde552.jpeg)

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [June 3, 2021, 8:43pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/6 "2021-06-03T20:43:18Z")

</div>

Assuming you’re using the OOTB Conduit PVC Elbow:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/6/b6c48d5503b2c1cb060e4dc40efb10daa656dfd7.png)  
Conduit Length controls the straightline component of the fitting.

The conduit length parameter reports in inches, but curve.length node reports in feet. Try multiplying the straight line lengths by 12, you’ll match up to the conduit length parameter.

---

<div class="post-metadata">

**Author:** ![jacobmock3577](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jacobmock3577](https://forum.dynamobim.com/u/jacobmock3577)\
**Post date:** [June 3, 2021, 10:46pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/7 "2021-06-03T22:46:29Z")

</div>

So I my question is what are you trying to accomplish? The script I utilize is for fabrication efforts and for general inquiry. This is the information I am most interested in. This again depends on what I have selected. A entire run or just a section of pipe that will be fabricated. The Move Distances get copied to the clipboard so I can past that into the move command.

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

---

<div class="post-metadata">

**Author:** ![jacobmock3577](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jacobmock3577](https://forum.dynamobim.com/u/jacobmock3577)\
**Post date:** [June 3, 2021, 10:50pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/8 "2021-06-03T22:50:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [June 4, 2021, 6:21am UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/9 "2021-06-04T06:21:26Z")

</div>

> [@jacobmock3577](#):
>
> So I my question is what are you trying to accomplish?

We have accomplished getting the elbow lengths with Dynamo. But my question was what the hell is the “Conduit Length” read-only parameter on elbows, and why is it **3.2366542** times the actual length in my example?

Answer via [Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger): The parameter is in inches and it is only used for the straight part of the elbow.

`size_lookup(Conduit Size Lookup, "CLgt", 1.25 * Nominal Diameter + 1 95/256", Nominal Diameter)`

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/5/b57d0a161c1821e0b8d6f9172ba3e0fb9ce12a71.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/054422ff671bac5904aa2befedc13eb78a8e3752.png)

New question: Why the hell do we have an **inches unit** parameter when Revit uses feet as its internal unit?

---

<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 4, 2021, 6:29am UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/10 "2021-06-04T06:29:35Z")

</div>

Sounds like a units issue (1m = 3.2 ft)

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [June 4, 2021, 4:36pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/11 "2021-06-04T16:36:01Z")

</div>

> New question: Why the hell do we have an **inches unit** parameter when Revit uses feet as its internal unit?

- Pipe Size / Duct Size are parameter types that generally report back in a smaller unit size for convenience. You’ll see the disparity most easily in something like an Air Terminal family, the faceplate will measure in-family in feet, but the duct connector in inches.

- Retrieving parameter data (GetParameterByName) is a different workflow than extracting geometry values (Curve.Length). Retrieving parameter data will give you values that match your project units. Geometry information generated in Dynamo will use Dynamo’s internal units (which I believe are always feet in this case, metric users correct me if I’m wrong?)

---

<div class="post-metadata">

**Author:** ![S1arhei](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@S1arhei](https://forum.dynamobim.com/u/S1arhei)\
**Post date:** [February 9, 2023, 11:44pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/12 "2023-02-09T23:44:02Z")

</div>

Thank you for the concept.  
Any ideas why “CW.Element.Location” doesn’t work?

 ![11](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/11690645904f8351419fc18b380b4a6c04053d84.png)

---

<div class="post-metadata">

**Author:** ![S1arhei](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@S1arhei](https://forum.dynamobim.com/u/S1arhei)\
**Post date:** [February 9, 2023, 11:44pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/13 "2023-02-09T23:44:32Z")

</div>

![12](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/2265ce95bdbab8272ccc96427a98c82bd1c4acdf.png)

---

<div class="post-metadata">

**Author:** ![jacobmock3577](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jacobmock3577](https://forum.dynamobim.com/u/jacobmock3577)\
**Post date:** [April 24, 2023, 5:27pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/14 "2023-04-24T17:27:19Z")

</div>

I use this version of CW and it works on my end.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/e/1e1333832d9f6e8dea500b3eb6c11a052edd9ab7.png)

---

<div class="post-metadata">

**Author:** ![jacobmock3577](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jacobmock3577](https://forum.dynamobim.com/u/jacobmock3577)\
**Post date:** [April 24, 2023, 5:29pm UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/15 "2023-04-24T17:29:27Z")

</div>

We have also played around using dynamo to create conduit lengths based upon a conduit ID. I have found adding a Length parameter to Conduit Fittings to match that of the Conduit. Allows for a easier way to accomplish this. The parameter in our fitting look like this.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/f/6f380fea763cca4abf4a90ab11cfe20a93ce9bf1.png)

---

<div class="post-metadata">

**Author:** ![abdelrahman111](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/abdelrahman111/32/181827_2.png) [@abdelrahman111](https://forum.dynamobim.com/u/abdelrahman111)\
**Post date:** [November 7, 2024, 9:42am UTC](https://forum.dynamobim.com/t/calculating-conduit-elbow-lengths/64675/16 "2024-11-07T09:42:12Z")

</div>

Check this Post: about similar topic for pipe fittings [Compliance with POMI method of measurement]

> [@Get total length of sweep profiles in Pipe fittings (Elbows)](https://forum.dynamobim.com/t/get-total-length-of-sweep-profiles-in-pipe-fittings-elbows/104399):
>
> Hey folks! I’m creating a dynamo script that gets equivalent length of pipe fittings, (to comply with POMI/ NRM2) methods of measurement. Is there a way to get the total length of sweep profiles of all fittings (type: elbow) from the project file? Hint: depending on the elbow type (welded / Upvc / threaded), number of sweeps is either one or three.

This Premise may also help 🔻 🔻  
[Fitting Length VOL5.dyn](https://forum.dynamobim.com/uploads/short-url/xu72kBLD72Wa1y9gkkTpE0pT3kl.dyn) (227.9 KB)

Also check this amazing topic by Jeremy from the Building Coder [contains code snippets in Python and C#]

[https://thebuildingcoder.typepad.com/blog/2024/09/mep-cable-tray-bend-and-tee-analysis-1.html](https://thebuildingcoder.typepad.com/blog/2024/09/mep-cable-tray-bend-and-tee-analysis-1.html)
