create_node#

abstract RootSystem.create_node(type_: NodeType, name: str | None = None, design_flow: DesignFlow = DesignFlow.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:
OslCommunicationError

Raised when an error occurs while communicating with the server.

OslCommandError

Raised when a command or query fails.

TimeoutError

Raised when the timeout float value expires.

TypeError

Raised when unsupported type of type_ is given.

ValueError

Raised when unsupported value of type_ is given.