copy#

abstractmethod RootSystem.copy(target_system: System | None = None, deep_copy: bool = False) → Node#

Copy current node into a target system.

Note

Method is supported for Ansys optiSLang version >= 27.1 only.

Parameters:
target_systemOptional[System], optional

System the node is copied into, by default None. If not specified, the node is copied into the root system.

deep_copybool, optional

Whether children of the node are copied as well, by default False.

Returns:
Node

Instance of the copied node.

Raises:
NotImplementedError

Raised when unsupported optiSLang server is used.

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.