find_node_by_uid#
- abstractmethod ParametricSystem.find_node_by_uid(uid: str, search_depth: int = 1) Node | None#
Find a node in the system with a specified unique ID.
This method searches only in the descendant nodes for the current system.
- Parameters:
- uid
str Unique ID of the node.
- search_depth: int, optional
Depth of the node subtree to search. The default is
1, which corresponds to direct children nodes of the current system. Set to-1to search throughout the full depth.
- uid
- Returns:
Optional[Node]Nodewith the specified unique ID. If this ID isn’t located in any descendant node,Noneis returned.
- Raises:
OslCommunicationErrorRaised when an error occurs while communicating with the server.
OslCommandErrorRaised when a command or query fails.
TimeoutErrorRaised when the timeout float value expires.
TypeErrorRaised when an unknown type of component is found.