VariableStubs: IVariableStubList;
The VariableStubs property returns the collection of variables, which data is used on modeling problem calculation.
Sub Main;
Var
MB: IMetabase;
Problem: IMsProblem;
CalcSett: IMsProblemCalculationSettings;
Calculation: IMsProblemCalculation;
i: Integer;
Begin
MB := MetabaseClass.Active;
Problem := MB.ItemByIdNamespace("PROBLEM_1", MB.ItemById("KONT_MODEL").Key).Bind As IMsProblem;
CalcSett := Problem.CreateCalculationSettings;
Calculation := Problem.Calculate(CalcSett);
For i := 0 To Calculation.VariableStubs.Count - 1 Do
Debug.WriteLine((Calculation.VariableStubs.Item(i) As IMetabaseObject).Name);
End For;
End Sub Main;
After executing the example the list of input and output variables is displayed in the console, which data is used on problem calculation with the PROBLEM_1 identifier.
See also: