Sets the material for subentities.
eOk if the new material value was successfully set or an appropriate error code otherwise.