# Conduits.ByLines - It does not place Conduits in Revit

**URL:** <https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 21, 2019, 9:47am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102 "2019-10-21T09:47:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Horacio.MonesRuiz](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Horacio.MonesRuiz](https://forum.dynamobim.com/u/Horacio.MonesRuiz)\
**Post date:** [October 21, 2019, 9:47am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/1 "2019-10-21T09:47:46Z")

</div>

Hi All,

I would sincerely appreciate some assistance. I have been given the task to design some conduits layout and given the repetitive task, I have decided to do it in Dynamo. I have created points(based on vector displacement and directions) from which I created a poly curve. I have then fed the given curves as input “lines” to conduits.bylines.

Unfortunately, it only considered the first and last point of the polycurve, ignoring the mid points in between.

Please feel free to comment and correct as needed.

Thanks once again,

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fdd8b74337d8cde09ae98bc1d5adc4bb5677de85.png)  
[Conduit Attemp.dyn](https://forum.dynamobim.com/uploads/short-url/q7qZA8zWg01ocwlM6HuZ2qZpzzb.dyn) (156.7 KB)

---

<div class="post-metadata">

**Author:** ![abt-rkj](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@abt-rkj](https://forum.dynamobim.com/u/abt-rkj)\
**Post date:** [October 21, 2019, 9:56am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/2 "2019-10-21T09:56:13Z")

</div>

Hi!

The node Conduit.ByLines will only take lines, no polycurves! So it looks like it will try to connect the startpoint-endpoint of the polycurves. Did you try splitting them?

---

<div class="post-metadata">

**Author:** ![Horacio.MonesRuiz](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Horacio.MonesRuiz](https://forum.dynamobim.com/u/Horacio.MonesRuiz)\
**Post date:** [October 21, 2019, 11:17am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/3 "2019-10-21T11:17:30Z")

</div>

Hi!

You were right! The moment I split them it draws the conduits in Revit, but it does not connect the joints/connection, do you know how to overcome this?

Thanks

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [October 21, 2019, 11:45am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/4 "2019-10-21T11:45:30Z")

</div>

You could try the ‘Elbow.ByMEPCurves’ nodes, just feed it the conduits:

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

Another (and much faster) way would be to use the ‘MEPFitting.ByMEPCurves’ node:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/6/56e385e82e3ad38b46713299b68b6768bcf47afc.png)  
But that node expects specific conduits as input, so you need to know which conduit has to be connected to the other conduit.

---

<div class="post-metadata">

**Author:** ![Horacio.MonesRuiz](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Horacio.MonesRuiz](https://forum.dynamobim.com/u/Horacio.MonesRuiz)\
**Post date:** [October 21, 2019, 12:01pm UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/5 "2019-10-21T12:01:07Z")

</div>

Hi,

I initially tried what suggested but it didn’t work, so I split the poly curves as suggested above. Followed by a simple list manipulation, where I subdivided the lines into lists of two, being able to place fittings with elbow.bymepcurves.

Let me know if there is a better way.

Thanks

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

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [October 21, 2019, 5:53pm UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/6 "2019-10-21T17:53:03Z")

</div>

Hi Horacio, i don’t have time today to look into your graph, but tomorrow i have some spare time. 🙂

If you can explain to me what Package you are using and what you are trying to achieve exactly, maybe with a small sketch i think i might be able to help! (And your dyn file 🙂 )

---

<div class="post-metadata">

**Author:** ![Horacio.MonesRuiz](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Horacio.MonesRuiz](https://forum.dynamobim.com/u/Horacio.MonesRuiz)\
**Post date:** [October 22, 2019, 4:16am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/7 "2019-10-22T04:16:38Z")

</div>

Hi,

I basically created translated points, creating a line of points and then I joined them using polycurves. The function conduits.bylines did not considered my poly curves so I split them into lines rather than polycurves. After this, conduit.bylines worked. However the elbow.bymepcurves did not. So I had to divide the line data set into pairs to be able to create fittings between the conduits.

[Conduit Attemp.dyn](https://forum.dynamobim.com/uploads/short-url/8HJV4ugGC93n0Gxzhpd4Egq2qmx.dyn) (477.9 KB)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [October 22, 2019, 6:57am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/8 "2019-10-22T06:57:23Z")

</div>

But what are you trying to do with your script? i don’t understand what your end goal is. Do you maybe have something visual?

---

<div class="post-metadata">

**Author:** ![Horacio.MonesRuiz](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Horacio.MonesRuiz](https://forum.dynamobim.com/u/Horacio.MonesRuiz)\
**Post date:** [October 23, 2019, 5:42am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/9 "2019-10-23T05:42:12Z")

</div>

Hi Daan,

Sorry for the late reply. I want to basically create a route for the conduits by placing coordinated points, later converting it to lines and then conduits. However the struggle has been to convert lines to conduits and placing fittings. Sometime it works, other times it doesn’t.

I have attached the .dyn and image for your clarification.

Thanks,

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

[Conduit Attemp.dyn](https://forum.dynamobim.com/uploads/short-url/dfpnzLOaCYtSOvTfwOfrMV6wS1Z.dyn) (517.8 KB)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [October 23, 2019, 6:41am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/10 "2019-10-23T06:41:43Z")

</div>

Okay so you have points in revit, you create lines between them, and then you create conduits the same length as these lines? And what is your first “Element.select” node supposed to select?

---

<div class="post-metadata">

**Author:** ![Horacio.MonesRuiz](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Horacio.MonesRuiz](https://forum.dynamobim.com/u/Horacio.MonesRuiz)\
**Post date:** [October 23, 2019, 7:32am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/11 "2019-10-23T07:32:54Z")

</div>

No,

1. Select straight line - Revit

Dynamo:

1. Use Vector to get new points - following my future conduit layout
2. Convert points to lines
3. Split Lines
4. Convert lines to conduits
5. Place fittings between conduits

I hope this helps

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [October 23, 2019, 7:38am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/12 "2019-10-23T07:38:57Z")

</div>

So you have a line, you create points on them and then you split this line by points? Thats step 1 to 4 right?

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [October 23, 2019, 7:47am UTC](https://forum.dynamobim.com/t/conduits-bylines-it-does-not-place-conduits-in-revit/42102/13 "2019-10-23T07:47:55Z")

</div>

Hi Horacio,

I have looked into it but unfortunately i don’t know how to create conduits from your script.  
(I also don’t really understand why you have these giant code blocks everywhere.)  
I tried it but it does not work.

Good luck with it from here, i am sorry i couldn’t help you.
