Doubts with Modeler autommation

Hi 

I'm trying to automate MAXSURF modeler so i can modify a hull shape with a parametric transformation and get its hydrostatic results written in an excel file, and after that save it as a file called test , so i can learn to use it.

However I've written in visual basics the required commands to open the design , make the transformation and get the results ,and when i execute it,  it  appears error '-214722164(80040154)' .

This is an screenshot of the written code  and another were it appears the problem.

Sorry that it's in spanish.