Script outputs a circle but not a cylinder

 From:  Martin (MARTIN3D)
5441.1 
Hi Michael,

I can now draw lines:
script:
var factory = moi.command.createFactory( "line" );
factory.setInput( 0, moi.vectorMath.createPoint( 0, 0, 0 ) );
factory.setInput( 1, moi.vectorMath.createPoint( 40, 40, 40 ) );
factory.commit();


Also drawing a circle works fine:
script:
var factory = moi.command.createFactory( 'circle' );
factory.setInput( 1, moi.vectorMath.createFrame() );
factory.setInput( 3, 10 );
factory.commit();


But drawing a cylinder gives a parse error:
script:
var factory = moi.command.createFactory( 'cylinder' );
factory.setInput( 1, moi.vectorMath.createFrame() );
factory.setInput( 3, 10.0) );
factory.setInput( 5, 40.0) );
factory.commit();


What is wrong?
I searched but I can't find any example scripts that create solids.