pyAEDT on linux #5157
-
Hi, https://aedt.docs.pyansys.com/version/stable/Getting_started/Installation.html there are cited some env variables to be set, but what for ? Am I able to access my model in HFSS using the these api ? For example, if I need to steer the beam for an antenna array, will I able to write a script ? Unfortunately, in Linux the script for the steering is not working ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @erikajob91 , PyAEDT is Linux compatible. But you need at least AEDT 2023R1, because it is the first version that includes GRPC protocol which is the enabler of CPython in Linux. Before it was not possible because the communication protocol was COM, and it is Windows base. I encourage you to use 2024R2, because by default AEDT opens a GRPC session. In previous versions, when the user opened AEDT, a COM session was opened. Coming back to PyAEDT, if your script is going to open a new AEDT session, you need to set the 2 environment variables mentioned in the documentation, because the AEDT Installer does not create them. Once you set them(with the correct path) , you can activate your python interpreter and run your script. You can try a simple call like: import pyaedt App=pyaedt.Desktop() Finally, you can use the pyaedt installer, but before launching AEDT, you need to set the env. Variables and launch AEDT in GRPC mode, as I said before 2024R2, it was not by default, and you needto add this argument ansysedt.exe -grpcsrv 50051 |
Beta Was this translation helpful? Give feedback.
-
Yes, it should be like it. Also specify in the pyaedt call the version: pyaedt.Hfss(version="2024.1") |
Beta Was this translation helpful? Give feedback.
Hi @erikajob91 ,
PyAEDT is Linux compatible.
But you need at least AEDT 2023R1, because it is the first version that includes GRPC protocol which is the enabler of CPython in Linux. Before it was not possible because the communication protocol was COM, and it is Windows base.
I encourage you to use 2024R2, because by default AEDT opens a GRPC session. In previous versions, when the user opened AEDT, a COM session was opened.
Coming back to PyAEDT, if your script is going to open a new AEDT session, you need to set the 2 environment variables mentioned in the documentation, because the AEDT Installer does not create them. Once you set them(with the correct path) , you can activate your pyt…