IDescStatsBox.ModelSpace

Syntax

ModelSpace: IMsModelSpace;

Description

The ModelSpace property determines a modeling container, to which the component is connected.

Example

Executing the example requires that the repository contains a form with the following:

Add links to the Cubes, Dimensions, Metabase, Ms system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    MS, Var1, Var2: IMetabaseObject;
Begin
    MB := MetabaseClass.Active;
    MS := MB.ItemById("CONT_MODEL").Bind;
    Var1 := MB.ItemByIdNamespace("X1", MS.Key).Bind;
    Var2 := MB.ItemByIdNamespace("X2", MS.Key).Bind;
    DescStatsBox1.ModelSpace := MS As IMsModelSpace;
    DescStatsBox1.AddVariableStub(Var1 As IVariableStub);
    DescStatsBox1.AddVariableStub(Var2 As IVariableStub);
End Sub Button1OnClick;

After executing the example the DescStatsBox1 component will be connected to the CONT_MODEL modeling container. The X1 and X2 modeling variables will be loaded to the list of component variables. Descriptive statistics are automatically calculated for these variables.

See also:

IDescStatsBox