MetaModel: IMsMetaModel;
The MetaModel property determines the metamodel that contains problem calculation chain.
Sub Main;
Var
MB: IMetabase;
Problem: IMsProblem;
MetaMod: IMsMetaModel;
i: Integer;
Begin
MB := MetabaseClass.Active;
Problem := MB.ItemByIdNamespace("METAMODEL_1", MB.ItemById("KONT_MODEL").Key).Bind As IMsProblem;
MetaMod := Problem.MetaModel;
i := MetaMod.CalculationChain.Count;
End Sub Main;
After executing the example the metamodel that contains the calculation for problem with the PROBLEM_1 identifier is received. The "i" variable contains the number of models in this chain.
See also: