How to access DimX, DimY, DimZ?

Hello,

How do I access DimX, DimY, and DimZ values for an object in python (I can see them in Transform Properties)? getMatrix() returns an identity matrix.

Thanks.

you cant, closest you can get is to access the objects bounding box.