save_project#

ToolkitBackend.save_project(project_path=None, release_aedt=True)#

Save the project.

This method uses the properties to get the project path. This method is launched in a thread.

Parameters:
project_pathstr, optional

Path of the AEDT project. The default value is None, in which case the current file is overwritten.

release_aedtbool, optional

Release PyAEDT object. The default value is True.

Returns:
bool

Returns True if the connection is successful, False otherwise.

Examples

>>> from ansys.aedt.toolkits.common.backend.api import AEDTCommon
>>> toolkit_api = AEDTCommon()
>>> toolkit_api.launch_aedt()
>>> toolkit_api.wait_to_be_idle()
>>> toolkit_api.connect_aedt()
>>> toolkit_api.save_project()