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.
- name
Optional
[str
],optional
Name of created node, by default None.
- design_flow
Optional
[DesignFlow
],optional
Design flow, by default None.
- type_
- 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.