Thank you @paris.
With “Geometry. Intersect” node we can isolate the duct segment whose intersect the room, whoever with the configuration that I share we can obtain the length from segments which starts or ends at the middle point to the middle of a wall or an expansion joint. (I didn’t considerate the separators rooms because it’s not necessary for this project).
About the duct splitting, it’s true. Definitely doesnt split the duct and take the information of the curves is a better automation option, but it was enough for me because this a “ONERUN” routine, so I thought that split the ducts made more agile the process of generating scheduling tables because it would made able the Revit to do this.
But I going to try it, just for fun.
Maybe creating rooms parameters to classify “duct lengths” by “system types”, and fill-in these values with a similar process of the picture, but with some filters to order the information and finishing with the tables autogeneration.
Please if you have another idea to do this, i’ll appreciate if you can share with me.
I guees, this is not a solution for all the problems but it was for my especifict situation.