Good afternoon

How do I get the X Y Z dimensions of a solid, automatically?
SolidworksModeling And Assemblies