IMsMetaModelVisualController.RemoveModel

Syntax

RemoveModel(ModelKey: Integer): Boolean;

Parameters

ModelKey. Internal model key.

Description

The RemoveModel method deletes the selected internal model.

Comments

If the model is deleted successfully, the method returns True.

Example

The example is the procedure removing the internal model. Input parameters of the procedure:

Add a link to the Ms system assembly.

Sub UserProcRemove(Var MetaVisual: IMsMetaModelVisualController; Var Model: IMsModel);
Var
    i: Integer;
Begin
    //Remove the model
    MetaVisual.RemoveModel((Model As IMetabaseObject).Key);
End Sub UserProcRemove;

After execution of the procedure the specified internal model will be removed.

See also:

IMsMetaModelVisualController