How to control the direction of Bounding Box calculation?

Hi Guys,

I am using this example to create the bouding box of a part, but for the positon of the model , there are many situation , comparing the XYZ datum.

So there will be many bouding box results. How to control to direstion ? May be I can setup a coordinate to the model as the BBX datum.

2014 SOLIDWORKS API Help - Get Part Bounding Box Example (VBA)

when I use move body feature, then the BBX become OK.

SolidworksApi macros