Sorry i didn't read the error message:
You are passing 11 arguments to that functions and the prototype of the function needs only 10 arguments.
retval = DrawingDoc.NewSheet3 ( name, paperSize, templateIn, scale1, scale2, firstAngle, templateName, width, height, propertyViewName )
Input...