create_node#
- abstract ParametricSystem.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:
TypeError
Raised when unsupported type of
type_
is given.ValueError
Raised when unsupported value of
type_
is given.