Get Active Design #3821
-
I have a list of Q3D designs and if I use the default My question is: Is there a way to reliably get the active design without having to specify it's name? Something equivalent to:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @hmulhi , This is expected, because if you have more than one Q3D design, PyAEDT cannot decide which one you want to connect. So PyAEDT created a new design. If you have this kind of situation, I encourage you to use the first Desktop, then you will know the available projects and designs in the AEDT session. app = pyaedt.Desktop() Then you can use pyaedt.Hfss(designname=...) or even app[("projectname", "designname")] |
Beta Was this translation helpful? Give feedback.
Hi @hmulhi ,
This is expected, because if you have more than one Q3D design, PyAEDT cannot decide which one you want to connect. So PyAEDT created a new design. If you have this kind of situation, I encourage you to use the first Desktop, then you will know the available projects and designs in the AEDT session.
Then for example you can use: design_list method.
app = pyaedt.Desktop()
app.load_project("project_path")
app.design_list()
Then you can use pyaedt.Hfss(designname=...)
or even
app[("projectname", "designname")]