Writing a macro to measure the sketches created by the Slicing tool and adding them to a spreadsheet

I am using the Slicing tool to create planes and sketches from a 3D scan of a leg.  I want to write a macro that will take the sketches that are created and give me a length measurement, which is the leg circumference.