I am trying to automate AEDT with pyaedt.
Below is my script
from pyaedt import Maxwell2d
project_path = "D:/.....aedt"
design_name = "...."
ansys_version = "2025.2"
setup_names = ["....."]
app = Maxwell2d(
project=project_path,
design=design_name,
specified_version=ansys_version,
non_graphical=True,
new_desktop_session=False
)
opt = app.odesign.GetModule("Optimetrics")
setup_names = opt.GetSetups()
print("Existing Optimetrics setups:", setup_names)
app.save_project()
app.release_desktop(close_projects=True, close_desktop=True)
owever, I encounter the following error:
Optimetrics API not available or not supported: Failed to execute gRPC AEDT command: GetSetups
Although the design contains existing Optimetrics setups in the AEDT GUI, PyAEDT fails to access them through the gRPC API.
How can I resolve this issue or work around this limitation?
thx!