ResultsViewSelectionSet: IDimSelectionSet;
The ResultsViewSelectionSet property determines the elements selection of end-to-end dimensions of the output variable.
A dimension is pass-through if all elements use one calculation method, that is, the Use One Specification checkbox is selected.
To change selection of elements in pass-through dimensions using the custom interface, use the View Results panel.
Executing the example requires that the repository contains a form with the following:
The ModelBox component with the ModelBox1 identifier.
The UiModel component with the UiModel11 identifier. The UiModel11 component is a data source for ModelBox1 and contains a loaded model. This model should have additional end-to-end dimensions.
Add a link to the Dimensions system assembly.
Sub UserProcSel;
Var
DimSel: IDimSelection;
Begin
// Get selection in the first end-to-end dimension
DimSel := ModelBox1.ResultsViewSelectionSet.Item(0);
// Reset the current selection
DimSel.DeselectAll;
// Select the first element
DimSel.SelectElement(0, False);
// Save changes
ModelBox1.SaveObject;
End Sub UserProcSel;
After executing the example the model will be calculated by the first element in the first pass-through dimension.
See also: