HOW TO GET THICKNESS AND SIZE OF THE COMPONENT USING api?

How do i extract the weight of the component and the size of the component modelled using solidworks?

How do i get the values extracted using API?

SolidworksApi macros