Dimensions: IStandardCubeDimensions;
The Dimensions property returns the collection of cube dimensions.
Executing the example requires that the repository contains a standard cube with the Stan_Cube identifier.
Sub Main;
Var
MB: IMetabase;
StandCub: IStandardCube;
Dimen: IStandardCubeDimension;
i: Integer;
Begin
MB := MetabaseClass.Active;
StandCub := MB.ItemById("Stan_Cube").Bind As IStandardCube;
For i := 0 To StandCub.Dimensions.Count - 1 Do
Dimen := StandCub.Dimensions.Item(i);
Debug.WriteLine((Dimen.Dimension As IMetabaseObject).Id);
End For;
End Sub Main;
After executing the example identifiers of the cube dimensions are displayed in the console.
See also: