Get the direction of cable-tray

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

Can you post what you tried ?

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

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.

Filter Vertical and Horizontal elements.dyf (17.0 KB)
Filter Vertical and Horizontal Pipes.dyn (18.6 KB)