Sets a new category for the DirectShape element.
eOk if the new category was successfully set; otherwise, the method returns an appropriate error code.