IMsVariable.Dimensions

Syntax

Dimensions: IMsVariableDimensions;

Description

The Dimensions property returns the collection of additional dimensions for the modeling variable.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Variable: IMsVariable;

Begin

MB := MetabaseClass.Active;

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

Variable := MObj As IMsVariable;

Variable.Dimensions.Add(MB.ItemById("D_SRC").Bind As IDimensionModel);

MObj.Save;

End Sub Main;

After executing the example the repository dictionary with the D_SRC identifier is added to the list of dimensions of the modeling variable with the VAR_1 identifier.

See also:

IMsVariable