How to script Roof accessories to get length measures

Hi guys! I’m new using Dynamo, but i have a lot of exprience with Revit. I’ve been Workin’ with this kind of projects to get lengths measures from all types of Roof, especially accesories (Hips, Valleys, Ridges, Eaves etc.) How can i make a script with Dynamo to get all the measures from this kind of projects? Thanks!