Script outputs a circle but not a cylinder

 From:  Martin (MARTIN3D)
5441.3 In reply to 5441.2 
Thanks a lot benfarmer, I was blind. The error is gone but the script still isn't correct because
it produces just a circle:
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();