SelectSiblings(Element: Integer);
Element is the dictionary element on the level, which elements should be added to the selection.
The SelectSiblings method adds the elements of the level containing the Element element. Elements are added within their parent element.
Sub UserProc;
Var
MB: IMetabase;
Dimen: IDimInstance;
Selection: IDimSelection;
Begin
MB:=MetabaseClass.Active;
Dimen:=MB.ItemById("D_TO").Open(Null) As IDimInstance;
Selection:=Dimen.CreateSelection;
Selection.SelectSiblings(11);
End Sub UserProc;
After executing the example all the elements at the same level with the 11th element are added to the Selection selection.
See also: