add_data_def_equation(data_def, diagram, lefts, right, position=None, size=None, symmetrical=False, rotation=0, textual=False)#

Create an equation in a scope.

Parameters:
data_defsuite.DataDef

Input scope, which is an operator, state, or action.

diagramsuite.Diagram

Diagram containing the equation. The diagram specified can be either graphical or textual, or it can be None. However, it cannot be None if the scope contains at least one diagram.

leftsList[Union[suite.LocalVariable, TX]]

List of variables defined by the equation. The elements can be either an existing local variable or a type tree to create an internal variable on the fly when the diagram is a graphical diagram.

rightEX

Expression of the equation.

positionTuple[float, float], default: None

Position of the equation, expressed in 1/100th of mm. This value is ignored if the diagram is not a graphical diagram. Otherwise, it must be specified.

sizeTuple[float, float], default: None

Size of the equation, expressed in 1/100th of mm. This value is ignored if the diagram is not a graphical diagram. Otherwise, it must be specified.

symmetricalbool, default: False

Whether the graphical representation is symmetrical.

rotationint, default: 0

Rotation angle of the equation, expressed in degrees. Options are 0, 90, 180, and 270.

textualbool, default: False

Whether the equation is a textual. If False, the equation is a graphical representation.

Returns:
suite.Equation