SUM THE ELEMENTS FROM DESIGN TREE

HI,

Is there any way I can sum up elements from design tree???

          Thanks

SolidworksApi macros