Extract the length of each segment of set of parts

i have a set of parts which created by revit , and i want to extract the each length of the segments of the parts , some of them have irregular shapes , after that i want to extract them into excel and categorize them under similar shapes to calculate the quantity of the tiles , still new at dynamo this is the first script i have ever tried

and here is the photo of the parts

Hi @moarab97

What’s the category of those parts?