RemoveModel(ModelKey: Integer): Boolean;
ModelKey. Internal model key.
The RemoveModel method deletes the selected internal model.
If the model is deleted successfully, the method returns True.
The example is the procedure removing the internal model. Input parameters of the procedure:
MetaVisual. Parameters of visual building of the metamodel, containing the internal model.
Model. Internal model.
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: