Collect All Bends

Anyone have any idea on the best/easiest way to collect allbends on a sheet metal part?SolidworksApi macros