Bounding Box of Temporary body problem

Hello,
I created a temporary body and I wanted to calculate the bounding box of this solid using tessellation

ProcessBodies(X_max, X_min, Y_max, Y_min, Z_max, Z_min, temporaryBody)

swPart.GetPartBox

I saw that once the temporary body is created, the calculation will not work if the body is not displayed with Dispay3,

because X_max, X_min, Y_max, Y_min, Z_max, Z_min return "Infinite"
Am I doing something wrong?

Can I run this calculation even if the temporary body is not displayed?

Thanks

SolidworksApi macros