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.?


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