DimensionTransparent(OutputVariable: IMsFormulaTransformVariable; Dimension: IDimensionModel): Boolean;
OutputVariable, Output variable.
Dimension. Additional dimension of the output variable, for which general specification by all elements must be set.
The DimensionTransparent property determines whether the common calculation specification will be used for the dimension elements of the output variable. The output variable and the additional dimension are passed by the OutputVariable and Dimension parameters respectively.
Common specification of all output variables dimensions is always used for the input-output models.
Sub Main;
Var
MB: IMetabase;
CrInf: IMetabaseObjectCreateInfo;
MObj: IMetabaseObject;
Model: IMsModel;
Vari: IMsVariable;
Dim: IDimensionModel;
Begin
MB := MetabaseClass.Active;
CrInf := Mb.CreateCreateInfo;
CrInf.ClassId := MetabaseObjectClass.KE_CLASS_MSMODEL;
CrInf.Id := "New_Balance";
CrInf.Name := "New_Balance";
CrInf.Parent := Mb.ItemById("KONT_MODEL");
CrInf.Permanent := False;
MObj := Mb.CreateObject(CrInf).Edit;
Model := MObj As IMsModel;
Model.Kind := MsModelKind.InterindustryBalance;
Vari := MB.ItemByIdNamespace("Var_1", MB.ItemById("KONT_MODEL").Key).Bind As IMsVariable;
Model.Output.Add(Vari);
Dim := Vari.Dimensions.Item(0).Model;
Model.Transform.DimensionTransparent(Model.Transform.Outputs.Item(0), Dim) := True;
MObj.Save;
End Sub Main;
After executing the example a new model is created in the modeling container with the KONT_MODEL identifier. Model type is input-output model. A variable with the Var_1 identifier is set as the end use variable.
See also: