release_desktop#

Desktop.release_desktop(close_projects=True, close_on_exit=True)#

Release AEDT.

Parameters:
close_projectsbool, optional

Whether to close the AEDT projects that are open in the session. The default is True.

close_on_exitbool, optional

Whether to close the active AEDT session on exiting AEDT. The default is True.

Returns:
bool

True when successful, False when failed.

Examples

>>> import ansys.aedt.core
>>> desktop = ansys.aedt.core.Desktop("2021.2")
PyAEDT INFO: pyaedt v...
PyAEDT INFO: Python version ...
>>> desktop.release_desktop(close_projects=False, close_on_exit=False)