Reading sketch dimensions in macro

I want to read the sketch dimensions that make up a part. Is there a command that can read the dimensions names?

I have found lots of references to part.parameter which works if you know the label, but is there a way to loop through all the dimensions and get the labels?

SolidworksApi/macros