Skip to content

Get Active Design #3821

Closed Answered by Samuelopez-ansys
hmulhi asked this question in Q&A
Oct 30, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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")]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hmulhi
Comment options

Answer selected by Samuelopez-ansys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants