Is there a way to walk through a 3d sketch and have it give the lengths (arc lengths) of each segement?

I was trying to write a macro to have it walk along a 3d sketch and either write out an excel file with the length of each (some lengths will be arc lengths) of directly on the drawing face.

I'm trying to get measurements of a flattened swept solid to figure out info to bend it.

Thanks

SolidworksApi macros