AddFactor(Model: IMsModel;
EntryKey: Integer;
GraphMeta: String;
Var InterVariableKey: Integer;
Var InterModelKey: Integer;
Index: Integer;
[InterParentKey: Integer = -1]): Boolean;
Model. Internal model.
EntryKey. Key of the factor to be added.
GraphMeta. Graphical context.
InterVariableKey. Key of a intermediate variable.
InterModelKey. The key of the transitional model of interpolation/collapse.
Index. The parameter determining whether to add new factor to the model or to copy the existing one.
InterParentKey. Parent key of intermediate variable and intermediate model of interpolation/collapse.
The AddFactor method adds the factor to the internal model.
The GraphMeta parameter can take the Null value.
Values of the InterVariableKey and InterModelKey parameters are returned by the method after execution if frequencies of the model and added factor are different.
To add new factor in the model, the Index parameter must take -1 value. To copy the existing factor, specify its index in the Index parameter.
If the InterParentKey parameter is set to -1, the intermediate variable and model are added to the metamodel root.
The method use is given in the example for IMsMetaModelVisualController.HasVariableRubricator.
See also: