Skip to content
Discussion options

You must be logged in to vote

@Herve-L1 The script you provided is how you can interact directly with the AEDT API. But PyAEDT provides an extra layer to avoid this call, or at least to make it not visible.

You can:

from pyaedt import Desktop

Open AEDT

desktop= Desktop()

Load project

aedtapp = desktop.load_project(work_file)

Your automation

Release AEDT

desktop.release_desktop()

This is just one option, if you know the application to open, for example HFSS, you can do

from pyaedt import Hfss

app = Hfss(projectname=work_file)

Here you can find more examples:
https://aedt.docs.pyansys.com/version/stable/User_guide/index.html

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Samuelopez-ansys
Comment options

You must be logged in to vote
0 replies
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