|
40 | 40 |
|
41 | 41 | list_installed_aedt = list_installed_ansysem()
|
42 | 42 | else:
|
43 |
| - from ansys.aedt.core.generic.aedt_versions import aedt_versions |
| 43 | + from ansys.aedt.core.internal.aedt_versions import aedt_versions |
44 | 44 |
|
45 | 45 | list_installed_aedt = aedt_versions.list_installed_ansysem
|
46 | 46 |
|
@@ -91,7 +91,7 @@ class Common:
|
91 | 91 | >>> from ansys.aedt.toolkits.common.backend.api import Common
|
92 | 92 | >>> toolkit_api = Common()
|
93 | 93 | >>> toolkit_properties = toolkit_api.get_properties()
|
94 |
| - >>> new_properties = {"aedt_version": "2024.2"} |
| 94 | + >>> new_properties = {"aedt_version": "2025.1"} |
95 | 95 | >>> toolkit_api.set_properties(new_properties)
|
96 | 96 | >>> new_properties = toolkit_api.get_properties()
|
97 | 97 | """
|
@@ -224,7 +224,7 @@ def installed_aedt_version() -> List:
|
224 | 224 | >>> from ansys.aedt.toolkits.common.backend.api import Common
|
225 | 225 | >>> toolkit_api = Common()
|
226 | 226 | >>> toolkit_api.installed_aedt_version()
|
227 |
| - ["2023.2", "2024.1", "2024.2"] |
| 227 | + ["2024.2", "2025.1"] |
228 | 228 | """
|
229 | 229 |
|
230 | 230 | # Detect existing AEDT installation
|
@@ -757,6 +757,13 @@ def save_project(self, project_path=None, release_aedt=True):
|
757 | 757 | del self.properties.design_list[old_project_name]
|
758 | 758 | else:
|
759 | 759 | self.desktop.save_project()
|
| 760 | + |
| 761 | + # In non-graphical mode sometimes the active project and design does not set correctly |
| 762 | + if self.properties.active_project: |
| 763 | + oproject = self.desktop.active_project(self.get_project_name(self.properties.active_project)) |
| 764 | + if self.properties.active_design: |
| 765 | + self.desktop.active_design(oproject, self.properties.active_design) |
| 766 | + |
760 | 767 | self.__save_project_info()
|
761 | 768 | if release_aedt:
|
762 | 769 | self.release_aedt(False, False)
|
|
0 commit comments