Skip to content
6 changes: 6 additions & 0 deletions src/ansys/optislang/core/tcp/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def open(
self.__project = TcpProjectProxy(
osl_server=self.__osl_server,
uid=self.__get_project_uid(),
logger=self._logger,
)

def save(self) -> None:
Expand Down Expand Up @@ -201,6 +202,11 @@ def save_as(
Raised when the timeout float value expires.
"""
self.__osl_server.save_as(file_path=file_path, force=force, restore=restore, reset=reset)
self.__project = TcpProjectProxy(
osl_server=self.__osl_server,
uid=self.__get_project_uid(),
logger=self._logger,
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uid remains the same after using save_as method, there should be no need to update the project proxy


def save_copy(self, file_path: Union[str, Path]) -> None:
"""Save a copy of the project to a specified location.
Expand Down
Loading