IMsCalculationChainEntry.Excluded

Syntax

Excluded: Boolean;

Description

The Excluded property determines whether element of chain is not used in metamodel calculation.

Comments

Available values:

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.

Add links to the Metabase and Ms system assemblies.

Sub UserProc;
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;

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

See also:

IMsCalculationChainEntry