Create Drawing and place views at the view pallets API

Hi,

I need to Create Drawing and place views  according to predefined  view pallets using macro.

I managed to create a drawing and place a views in drawing using attached Macro, but views are not placed at the view pallets with proper scaling as like task scheduler perform.

Could any one help with that?

Thanks

SolidworksApi macros