IsExclusive: Boolean;
The IsExclusive property determines whether the model is internal for the calculation chain.
True: the model is internal, False: the model is external.
Executing the example requires that the repository contains a modeling container with the CONT_M identifier. The container contains a model with the MODEL identifier.
Sub UserProc;
Var
mb: IMetabase;
pModelSpace: IMetabaseObjectDescriptor;
Model: IMsModel;
Begin
mb := MetabaseClass.Active;
pModelSpace := mb.ItemById("CONT_M");
Model := mb.ItemByIdNamespace("MODEL", pModelSpace.Key).Bind As IMsModel;
If Model.IsExclusive
Then Debug.WriteLine((Model As IMetabaseObject).Name + " - internal model");
Else Debug.WriteLine((Model As IMetabaseObject).Name + " - external model");
End If;
End Sub UserProc;
After executing the example the console window displays information on model type (internal or external).
See also: