SelectSiblings(Element: Integer);
Element is the dictionary element on the level, the elements of which are to 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 Main;
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 Main;
After executing the example all the elements at the same level with the 11th element are added to the Selection selection.
See also: