IMsProblemCalculation.CopyFact

Syntax

CopyFact: Boolean;

Description

The CopyFact property determines whether the data of sample period of facts dimensions is copied to the dimensions according to scenarios on data unloading. By default the property is set to False. This property is available only via Fore.

Example

Executing the example requires that the repository contains a modeling container of the problem with the PROBLEM_1 identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Problem: IMsProblem;

CalcSett: IMsProblemCalculationSettings;

Calculation: IMsProblemCalculation;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemByIdNamespace("PROBLEM_1", MB.ItemById("KONT_MODEL").Key).Edit;

Problem := MObj As IMsProblem;

CalcSett := Problem.CreateCalculationSettings;

Calculation := Problem.Calculate(CalcSett);

Calculation.CopyFact := True;

Calculation.Run;

MObj.Save;

End Sub Main;

After executing the example the problem with the PROBLEM_1 identifier is calculated. At the forecast data unloading the data of the sample period of facts dimension is copied by all scenario dimensions, on which calculation was executed.

See also:

IMsProblemCalculation