Bend line length

I am trying to get the lengths of bend lines. I managed to do so, by iview.getbendlines and then throught isketchsegment interface getlength feature. the only problem i face now, that the order of bend line's length that i obtain do not match the order of those bends in bend table. Is it possible to put some kind of notes on the bend lines with its length? or maybe form a table with correct order and lengths?

Regards,

E.P.

SolidworksApi macros