how to get a simple macro to loop through drawing dims?

so you know how we all hate manually changing the precision (decimal places) of the handful of dual dim dimensions that happen to be at a different precision than the rest of the drawing? i finally got tired of it and am working on  a macro. works great so far, for the selected dimension.

anyone have a good example (or a link to a good example) of code that would cycle through all of the dims in a multi-sheet drawing?

thanks!

SolidworksApi/macros