create_node#

abstract RootSystem.create_node(type_: NodeType, name: str | None = None, design_flow: DesignFlow | None = None) Node#

Create a new node in current system in active project.

Parameters:
type_NodeType

Type of created node.

nameOptional[str], optional

Name of created node, by default None.

design_flowOptional[DesignFlow], optional

Design flow, by default None.

Returns:
Node

Instance of the created node.

Raises:
TypeError

Raised when unsupported type of type_ is given.

ValueError

Raised when unsupported value of type_ is given.