ICubeModelDimensionsEx.AddDimensionEx

Syntax

AddDimensionEx(Value: IDimensionModel): ICubeModelDimensionEx;

Parameters

Value. Structure of the dictionary added as a dimension.

Description

The AddDimensionEx method adds a dimension.

Example

Executing the example requires a time series database with the NewCatalog identifier and a repository dictionary with the D_SEP identifier.

Sub UserProc;
Var
    Mb: IMetabase;
    Rubr: IRubricator;
Begin
    Mb := MetabaseClass.Active;
    Rubr := MB.ItemById("NewCatalog").Edit As IRubricator;
    Rubr.Dimensions.AddDimensionEx(Mb.ItemById("D_SEP").Bind As IDimensionModel);
    (Rubr As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the specified dictionary is added to the list of mandatory dimensions of the time series database.

See also:

ICubeModelDimensionEx