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 general calculation specification is used for output variable dimension elements.
Common specification of all output variables dimensions is always used for the input-output models.
Executing the example requires that the repository contains a modeling container with the KONT_MODEL identifier.
Add links to the Metabase and Ms system assemblies.
Sub UserProc;
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 UserProc;
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: