Cable tray by line is not working

I’m trying to create tray by line and by selecting wall element. I have made nodes and connect to the line node at end revit and dynamo get closed. Can anyone check my node How to create cable tray by selecting any room.!

How to create MEP Section by Dynamo.?

Tray%20By%20line|614x500

try this out
select model lines in select model elements
create a cable tray and select using select model element

yes it is working but there is no tray fitting generated automatically why?

tray fittings will not be generated automatically there will be post related to that refer those posts

Hi,
I am trying to cut cable tray at the intersection of rooms. I use element.getlocation to convert cable tray to lines and use geometry.intersectall to intersect lines when they intersect a room’s boundaries. Then I use cableTray.ByLines from MEP POWER to create cable trays from the lines but the node doesn’t work beceause I have a 4 levels list which represents the lines and I have 3 levels list which correspond to the type, level, width and height of the cable trays to be replaced. Do you know how I can apply the “type, level, width, heigth” to all the level 3 of the list (See the extract from my script)?