save_project#

Desktop.save_project(project_name: str | None = None, project_path: str | Path | None = None) bool#

Save the project.

Parameters:
project_namestr, optional

Project name. The default is None, in which case the active project is used.

project_pathstr, Path, optional

Full path to the project. The default is None, in which case the current project is saved. If a path is provided, “save as” is used.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core import Desktop
>>> desktop = Desktop(version="2026.1")
>>> desktop.save_project(project_path=r"C:\Projects\MyProject.aedt")