IMsCalculationChainEntry.Excluded

Syntax

Excluded: Boolean;

Description

The Excluded property determines whether the chain element is used in metamodel calculation. False - element is used in calculation, True - element is not used in calculation. The default property is False.

Example

Executing the example requires that the repository contains a modeling container with the OBJ_CONT identifier. This container must include a metamodel with the OBJ_META identifier.

Sub Main;

Var

Mb: IMetabase;

ContKey: Integer;

MModel: IMsMetaModel;

Parent: IMsCalculationChainEntries;

ChainEntry: IMsCalculationChainEntry;

Begin

Mb := MetabaseClass.Active;

ContKey := Mb.GetObjectKeyById("OBJ_CONT");

MModel := Mb.ItemByIdNamespace("OBJ_META", ContKey).Edit As IMsMetaModel;

Parent := MModel.CalculationChain;

ChainEntry := Parent.Item(0);

ChainEntry.Excluded := True;

(MModel As IMetabaseObject).Save;

End Sub Main;

After executing the example the first element in calculation chain is excluded from calculation.

See also:

IMsCalculationChainEntry