add_data_def_state_machine(data_def, name, diagram, position=None, size=None)#

Create a state machine in a scope.

Parameters:
data_defsuite.DataDef

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

namestr

Name of the state machine.

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.

positionTuple[float, float], default: None

Position of the state machine, 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 state machine, expressed in 1/100th of mm. This value is ignored if your diagram is not a graphical diagram. Otherwise, it must be specified.

Returns:
suite.StateMachine