- 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_def
suite.DataDef
Input scope, which is an operator, state, or action.
- diagram
suite.Diagram
Diagram containing the equation. The diagram specified can be either graphical or textual, or it can be
None
. However, it cannot beNone
if the scope contains at least one diagram.- lefts
List
[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.
- right
EX
Expression of the equation.
- position
Tuple
[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.
- size
Tuple
[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.
- rotation
int
, default: 0 Rotation angle of the equation, expressed in degrees. Options are
0
,90
,180
, and270
.- textualbool, default:
False
Whether the equation is a textual. If
False
, the equation is a graphical representation.
- data_def
- Returns:
suite.Equation