IModelBox.ResultsViewSelectionSet

Fore Syntax

ResultsViewSelectionSet: IDimSelectionSet;

Fore.NET Syntax

ResultsViewSelectionSet: Prognoz.Platform.Interop.Dimensions.IDimSelectionSet;

Description

The ResultsViewSelectionSet property determines the elements selection of end-to-end dimensions of the output variable.

Comments

Dimension is end-to-end, if all elements use one calculation method, that is, the Use One Specification checkbox is deselected.

To change selection of elements in end-to-end dimensions using the custom interface, use the View Results panel.

Fore Example

Executing the example requires a form that contains the UiModel component with the UiModel1 identifier and the ModelBox component with the ModelBox1 identifier. UiModel1 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(0False);
    // Save changes
    ModelBox1.SaveObject;
End Sub UserProcSel;

Example execution result: the model is calculated by the first element in the first end-to-end dimension.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Ms;
Imports Prognoz.Platform.Interop.Dimensions;

Public Sub UserProcSel();
Var
    DimSel: IDimSelection;
Begin
    // Get selection in the first end-to-end dimension
    DimSel := modelBoxNet1.CtrlBox.ResultsViewSelectionSet.Item[0];
    // Reset the current selection
    DimSel.DeselectAll();
    // Select the first element
    DimSel.SelectElement(0False);
    // Save changes
    modelBoxNet1.CtrlBox.SaveObject();
End Sub UserProcSel;

See also:

IModelBox