how to calculate sheet scale using macro

Dear Team,

          Am facing  a problem while Placing the model view in drawing sheet using macro.

          I have followed some steps open the drawing sheet using new document after the place the view using create draw view.

          Now I have to control the sheet scale with respect to getpartboudingbox value.

         Let me know how to calculate the sheet scale

        for eg:part bounding box value is 3000*1500

                          sheet size is 800*1000

                          what is sheet scale to accommodate the view inside the sheet

        please help me

Regards

Manikandan

SolidworksApi macros