Excluded: Boolean;
The Excluded property determines whether element of chain is not used in metamodel calculation.
Available values:
True. Element is not used in calculation.
False. Default value. Element is used in calculation.
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: