Attributes: IMetaHierarchyAttributes;
The Attributes property returns attributes included in the hierarchy.
Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.Add links to the Metabase, Rds, Cubes system assemblies.
Sub UserProc;
Var
Mb: Imetabase;
Rubr: IRubricator;
Facts: IMetaDictionary;
i: Integer;
Hierarchy: IMetaHierarchy;
HAttributes: IMetaHierarchyAttributes;
Att: IMetaAttribute;
Begin
Mb := MetabaseClass.Active;
Rubr := MB.ItemById("OBJ_FC").Bind As IRubricator;
Facts := Rubr.Facts;
Hierarchy := Facts.DefaultHierarchy;
HAttributes := Hierarchy.Attributes;
For i := 0 To HAttributes.Count - 1 Do
Att := HAttributes.Item(i);
Debug.WriteLine(Attribute + i.ToString + : + Att.Name);
End For;
End Sub UserProc;
After executing the example, information about attributes in the current time series database hierarchy is displayed in the console window.
See also: