Calculate total lengths of multiple lines

I have a lots of lines or complex chain (non-straight and non-flat) 

Is there any way to calculate the total length of all the lines combined? 
in either Open Building or Open Building Generative Component 

(Other than the manual add one by one method)