save_as#

TcpOslServer.save_as(file_path: str | Path, force: bool = True, restore: bool = False, reset: bool = False) None#

Save and open the current project at a new location.

Parameters:
file_pathUnion[str, pathlib.Path]

Path where to save the project file.

forcebool, optional

Whether to force opening of project even if (non-critical) errors occur. Non-critical errors include: - Timestamp of (auto) save point newer than project timestamp - Project (file) incomplete

restorebool, optional

Whether to restore project from last (auto) save point (if present).

resetbool, optional

Whether to reset project after load.

Raises:
OslCommunicationError

Raised when an error occurs while communicating with server.

OslCommandError

Raised when the command or query fails.

TimeoutError

Raised when the timeout float value expires.