# Creation of cable trays using the CableTray.ByLine node (MEPover)

**URL:** <https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [March 12, 2024, 7:35pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023 "2024-03-12T19:35:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabriner.rosa](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabriner.rosa](https://forum.dynamobim.com/u/fabriner.rosa)\
**Post date:** [March 12, 2024, 7:35pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/1 "2024-03-12T19:35:10Z")

</div>

Hi guys,

I’ve been searching some forums, but haven’t had any success yet. My aim is to draw a line with the revit line command and use the dynamos script to draw the straight stretches and the curves according to the angles of the vertices.  
The cable tray will be laid according to the dimensions selected previously, as well as the type of cable tray to be installed.

 ![Captura de tela 2024-03-12 163343](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a77afe343dba548fb7778fd95f386fb2d9ccb83e.png)

I haven’t started the script in dynamo yet. Could someone please help me?

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [March 12, 2024, 11:51pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/2 "2024-03-12T23:51:34Z")

</div>

Hi Fabriner, welcome to the forum! 👋

Please have a read of this post [How to get help on the Dynamo forums](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677)

> [@fabriner.rosa](#):
>
> I haven’t started the script in dynamo yet

Have a go and see how far you can get

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [March 13, 2024, 12:22am UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/3 "2024-03-13T00:22:25Z")

</div>

Review this post [Cable Tray By Line Not Working - #8 by Alban\_de\_Chasteigner](https://forum.dynamobim.com/t/cable-tray-by-line-not-working/26589/8)  
Note that the _Element Type_ node is now _Element Classes_ and then use _All Elements of Class_ to get the types.  
Convert Revit Detail/Model lines using the _Geometry_ node

---

<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:** [March 13, 2024, 6:22am UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/4 "2024-03-13T06:22:58Z")

</div>

Hi @fabriner.rosa welcome to the forum…you will need show a start at least as mention, or take a search here in the forum there are many hits how it can be done, here is one way…play around with it and if you go stuck then just ask here with your dataset so far…

![Revit_vH8YjByLEc](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/a/7a55456575e4567ebdf2cd59f7f2d50ccce8be96.gif)

---

<div class="post-metadata">

**Author:** ![fabriner.rosa](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabriner.rosa](https://forum.dynamobim.com/u/fabriner.rosa)\
**Post date:** [March 13, 2024, 4:17pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/5 "2024-03-13T16:17:07Z")

</div>

The script worked perfectly for the straight stretches! Thanks for the suggestion!  
For the curves, I couldn’t quite understand the link you made between the nodes, it was difficult to understand through the gif.  
However, this is what I have so far:

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

As my account is new, I can’t attach the videos, follow the link to access them.

[Dynamo\_Forum](https://1drv.ms/f/s!AlBVbu3Xf7Asiptk_3YUXonZffgX1g?e=WUpHH4)

---

<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:** [March 14, 2024, 5:20am UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/6 "2024-03-14T05:20:14Z")

</div>

hello…try as here and sse if it help…

 ![Skærmbillede 2024-03-14 061451](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/3054e2e5aebb8af5eff94fae080e4767b979ae33.jpeg)  
 ![Skærmbillede 2024-03-14 061617](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1b1dd8ea8ff8711ee6d268061225829d405e9685.jpeg)  
 ![Skærmbillede 2024-03-14 061823](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/d/2db0236e29ca19226cb154162b0e0cc85653a406.jpeg)

---

<div class="post-metadata">

**Author:** ![fabriner.rosa](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabriner.rosa](https://forum.dynamobim.com/u/fabriner.rosa)\
**Post date:** [March 14, 2024, 12:36pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/7 "2024-03-14T12:36:02Z")

</div>

Some errors are still occurring. I’ve put the new videos in the same shared folder on OneDrive.  
Some questions:  
1 - In this node, why is the expression a==2 being used?;  
2 - In these two nodes, how are the indices a[0] and a[1] going to be filtered, since there is no list in the “List.Transpose” filter?;

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

 ![Drawing_Cable_Trays_REV01_2024-03-14_08-07-10](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/98ff9c149859ac5ee4801ce77fee1929109c7657.png)

Could you send me your script so that I can see the results for each node?  
[Dynamo\_Forum](https://1drv.ms/f/s!AlBVbu3Xf7Asiptk_3YUXonZffgX1g?e=mfhkPi)

---

<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:** [March 14, 2024, 12:39pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/8 "2024-03-14T12:39:36Z")

</div>

yes sure if i had anymore, i can check later and can post not at dynamo pc in the moment…but try as here

 ![Skærmbillede 2024-03-14 133702](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/5872f09646c4d30168c92744a4cd8e58c9dee4d2.png)

---

<div class="post-metadata">

**Author:** ![fabriner.rosa](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fabriner.rosa](https://forum.dynamobim.com/u/fabriner.rosa)\
**Post date:** [March 14, 2024, 12:50pm UTC](https://forum.dynamobim.com/t/creation-of-cable-trays-using-the-cabletray-byline-node-mepover/99023/9 "2024-03-14T12:50:08Z")

</div>

Perfect! That’s exactly what it was. Thank you
