PyAEDT Multi-Desktop - How to open several instances of AEDT with different versions #4933
gmalinve
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the new multi-desktop settings, PyAEDT is able to launch different Desktop instances with different versions. Here is how:
In the Settings class we have recently introduced a new property called use_multi_desktop that allows you to have as many AEDT instances as you want (even with different versions).
Add this at the beginning of your code snippet:
from pyaedt import settings
settings.use_multi_desktop = True
Remember to set grpc to True if one of the versions you would like to open is < 2024.1 because, if not specified, the session is not open in grpc mode:
settings.use_grpc_api = True
and then you can launch the Desktop as:
desktop1= Desktop(new_desktop=True,version=241,non_graphical=non_graphical)
desktop2= Desktop(new_desktop=True, version=222, non_graphical=non_graphical)
and then you could release them separately:
desktop1.release_desktop()
desktop2.release_desktop()
Beta Was this translation helpful? Give feedback.
All reactions