Dimensions: ICubeModelDimensions;
The Dimensions property returns the collection of the ADOMD cube dimensions described by the ICubeModelDimensions interface.
Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier. The catalog contains the ADOMD cube with the Cube_1 identifier.
Sub UserProc;
Var
MB: IMetabase;
Cube: IAdoMdCube;
Dims: ICubeModelDimensions;
Dim: IMetabaseObject;
Begin
MB := MetabaseClass.Active;
Cube := MB.ItemByIdNamespace("Cube_1", MB.GetObjectKeyById("ADOMDTest")).Bind As IAdoMdCube;
Dims := Cube.Dimensions;
For Each Dim In Dims Do
Debug.WriteLine(Dim.Name + " (" + Dim.Id + ")");
End For;
End Sub UserProc;
The list of selected cube dimensions is displayed in the development environment output when executing the example.
See also: