How to get this whole size value of a BOM by API ?

Hi Master Shi Fu,

As the topic said, can we get the whole size value of a BOM by API, as below picture shows:

any advice is welcome. thank you very much.

regards

Vincent

SolidworksApi macros