Get the direction of cable-tray

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 ?