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 includes a model with the MODEL identifier.
Sub Main;
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 Main;
After executing the example the console window displays information on model type (internal or external).
See also: