ParametersSelectionSet: IDimSelectionSet;
The ParametersSelectionSet property determines element selection in free dimensions of the output variable.
A dimension is free if each element uses its own calculation method, that is, the Use One Specification checkbox is selected.
To change selection of elements in free dimensions using the custom interface, use the Parameters 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 free dimensions.
Add a link to the Dimensions system assembly.
Sub UserParam;
Var
DimSel: IDimSelection;
Begin
// Get selection in the first free dimension
DimSel := ModelBox1.ParametersSelectionSet.Item(0);
// Reset the current selection
DimSel.DeselectAll;
// Select the first element
DimSel.SelectElement(0, False);
// Save changes
ModelBox1.SaveObject;
End Sub UserParam;
After executing the example, calculation method will be displayed for the model, which is set for the first element of free dimension.
See also: