Sets the maximum number of subdivisions.
Returns odbrOK if successful, or an appropriate error code if not.