open#
- TcpOslServer.open(file_path: str | Path, force: bool = True, restore: bool = False, reset: bool = False, project_properties_file: str | None = None) None#
Open a new project.
- Parameters:
- file_path
Union[str,pathlib.Path] Path to the optiSLang project file to open.
- 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.
- project_properties_file
Optional[str],optional Project properties file to import, by default
None.
- file_path
- Raises:
OslCommunicationErrorRaised when an error occurs while communicating with server.
OslCommandErrorRaised when the command or query fails.
TimeoutErrorRaised when the timeout float value expires.