IMetaHierarchyInstance.GetPathPosition

Syntax

GetPathPosition(Path: String): IMetaHierarchyPosition;

Parameters

Path. Hierarchy element path.

Description

The GetPathPosition method returns position of the hierarchy element by path.

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.

Sub Main;

Var

Mb: Imetabase;

Rubr: IMetabaseObject;

RubrInst: IRubricatorInstance;

Facts: IMetaDictionaryInstance;

Hierarchy: IMetaHierarchy;

HInstance: IMetaHierarchyInstance;

Position: IMetaHierarchyPosition;

Members: IMetaMembers;

Begin

Mb := MetabaseClass.Active;

Rubr := MB.ItemById("OBJ_FC").Edit;

RubrInst := Rubr.Open(Null) As IRubricatorInstance;

Facts := RubrInst.GetDictionary(RubricatorDictionary.Facts);

Hierarchy := Facts.Dictionary.DefaultHierarchy;

HInstance := Facts.OpenHierarchy(Hierarchy);

Position := HInstance.GetPathPosition("0");

Members := HInstance.GetMembers(Position);

End Sub Main;

After executing the example the Members variable contains an element of the factor dictionary located at the path 0.

See also:

IMetaHierarchyInstance