Calendar: IAutoCubeDimension;
The Calendar property returns the calendar dimension of an automatic cube.
Executing the example requires that the repository contains an automatic cube with the AUTO_CUBE identifier.
Sub Main;
Var
MB: IMetabase;
AutoCub: IAutoCube;
CalDim: IAutoCubeDimension;
Begin
MB := MetabaseClass.Active;
AutoCub := MB.ItemById("AUTO_CUBE").Bind As IAutoCube;
CalDim := AutoCub.Dimensions.Calendar;
Debug.WriteLine((CalDim.Dimension As IMetabaseObjectDescriptor).Id);
End Sub Main;
After executing the example the console window displays identifier of the dictionary that is a calendar dimension in the automatic cube.
See also: