# Get the direction of cable-tray

**URL:** <https://forum.dynamobim.com/t/get-the-direction-of-cable-tray/24583>\
**Category:** Geometry\
**Created:** [August 8, 2018, 2:53am UTC](https://forum.dynamobim.com/t/get-the-direction-of-cable-tray/24583 "2018-08-08T02:53:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssean7240](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@ssean7240](https://forum.dynamobim.com/u/ssean7240)\
**Post date:** [August 8, 2018, 2:53am UTC](https://forum.dynamobim.com/t/get-the-direction-of-cable-tray/24583/1 "2018-08-08T02:53:31Z")

</div>

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

I want to use the dynamo node to get the direction of the two cable-trays.  
But I have no idea how to do

---

<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 8, 2018, 6:36am UTC](https://forum.dynamobim.com/t/get-the-direction-of-cable-tray/24583/2 "2018-08-08T06:36:58Z")

</div>

Can you post what you tried ?

> [@How to get help on the Dynamo forums](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677):
>
> One of the main goals of the Dynamo community is to help others. One way to do that is by answering your questions. But to get the right answer, you’ll first have to ask your question in the right way. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions on how to achieve that. Do not think of these suggestions as rules and especially do not take them as a guarantee of getting an an…

Many things are possible but your description is not precise enough.  
Do you want the vector, to know if the cable Trays are vertical ?

 ![CableTray](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/179dfd8e57b4b15a77a0c77cfb98fbbd67d8402a.png)

---

<div class="post-metadata">

**Author:** ![GPbim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gpbim/32/115924_2.png) [@GPbim](https://forum.dynamobim.com/u/GPbim)\
**Post date:** [December 11, 2020, 5:48am UTC](https://forum.dynamobim.com/t/get-the-direction-of-cable-tray/24583/3 "2020-12-11T05:48:57Z")

</div>

Hi @Alban_de_Chasteigner,  
I was able to filter now the vertical and horizontal cable tray. My issue is that when I try to create curve along the direction of the cable tray it will not follow.

 ![CURVE OFFSET](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/b/bbd01899bbfcddbc5aacfddb7aac548df1d73bc7.png) [Filter Vertical and Horizontal elements.dyf](https://forum.dynamobim.com/uploads/short-url/tsjm546kfGQVxEAPeXnCOaqZIPF.dyf) (17.0 KB)  
[Filter Vertical and Horizontal Pipes.dyn](https://forum.dynamobim.com/uploads/short-url/adtyZltLs159vMwvBVPpTNiIV37.dyn) (18.6 KB) ![curve offset line](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/2/d273bd9e24146d4caf57b8642985e3b971611a35.png)
