Overall size of part

Hello Experts

My requirements are

Macro need to find the overall size of part like (length width thickness) and same data will be copy to excel.

Thank you

I don't currently have enough time to create a custom example, but if you search the terms "bounding box" and "Excel" on this site (also try eng-tips and the Siemens community programming forum) you should find enough code to piece together what you need.