Express > Express Assembly Interfaces > IEaxSelectionPadContext > IEaxSelectionPadContext.HierarchyNewElement
HierarchyNewElement;
The HierarchyNewElement method adds new element to the hierarchy.
To rename element, use the IEaxSelectionPadContext.HierarchyRenameElement method.
Executing the example requires a form with the button named Button1, the EaxConfigurationPanel component named EaxConfigurationPanel1 and the UiErAnalyzer component that is a data source for EaxConfigurationPanel1. UiErAnalyzer is connected to an express report from repository.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
sps: ISystemPadContext;
Begin
sps := EaxConfigurationPanel1.GetActiveContext;
(sps As IEaxSelectionPadContext).HierarchyNewElement;
End Sub Button1OnClick;
After starting the form, on the side panel pass to the Selection tab group and select a dimension. Clicking the button opens the expression editor opens to determine a formula used to calculate values by a new element.
See also: