-
Notifications
You must be signed in to change notification settings - Fork 198
Description
Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
When using PyAEDT 0.19.0 with ANSYS HFSS 2025.2 (v252), we encounter critical issues exporting Touchstone files from Optimetrics parametric sweeps. While the parametric analysis runs successfully and solutions are visible in the HFSS GUI, programmatic export attempts fail with multiple error types:
-
Variation-specific exports using hfss.export_touchstone() with the variations parameter fail with: "the release level of the requesting product is not compatible with the new representation of this solution data"
-
Direct COM API calls to osolution.ExportNetworkData() fail with: "Failed to execute gRPC AEDT command: ExportNetwork" when attempting to export specific parametric variations
-
Bulk exports using hfss.export_touchstone() without specifying variations report: "solution data is not available. it was either not solved or was made invalid by subsequent design changes" - despite the solutions being valid and exportable through the GUI
We encountered this same export issue without the use of Optimetrics. When we manually swept the variable with PyAEDT, we still experience error type 3, which is the most common error we've faced upon trying multiple methods.
I've attached a test .aedtz file and the corresponding python codes in .ipynb. Please let me know if there's any possible workarounds.
Steps To Reproduce
- Open AEDT without opening any Projects.
- Start Jupyter Notebook from within AEDT
- Import the zipped .ipynb file and run block by block, please replace the session number with your own. Please replace the file path to where you downloaded the .aedtz test file.
- Upon running the final main program, you should see that the analysis is complete and touchstone files could be manually exported through the GUI. However, when running export_touchstone(), it won't work.
Which Operating System are you using?
Windows
Which Python version are you using?
3.8
Installed packages
annotated-types==0.7.0
ansys-api-edb==0.2.1
ansys-edb-core==0.2.1
ansys-pythonnet==3.1.0rc6
asgiref==3.9.1
attrs==25.3.0
cffi==2.0.0
clr_loader==0.2.7.post0
defusedxml==0.7.1
Django==5.2.6
fonttools==4.59.2
fpdf2==2.8.4
grpcio==1.74.0
jsonschema==4.25.1
jsonschema-specifications==2025.9.1
numpy==2.2.6
pandas==2.3.2
pillow==11.3.0
plumbum==1.9.0
protobuf==4.25.8
psutil==7.0.0
pyaedt==0.19.0
pycparser==2.23
pydantic==2.11.9
pydantic_core==2.33.2
pyedb==0.57.0
python-dateutil==2.9.0.post0
pytz==2025.2
pywin32==311
PyYAML==6.0.2
referencing==0.36.2
rpds-py==0.27.1
rpyc==6.0.2
rtree==1.4.1
scikit-rf==1.8.0
scipy==1.16.2
shapely==2.1.1
six==1.17.0
sqlparse==0.5.3
toml==0.10.2
tomli_w==1.2.0
typing-inspection==0.4.1
typing_extensions==4.15.0
tzdata==2025.2