How to copy a design from a project to another #4155
-
I would like to copy an exiting design from an existing project in an active project. |
Beta Was this translation helpful? Give feedback.
Answered by
amichel0205
Jan 30, 2024
Replies: 1 comment
-
Hello here is a suggested solution:
Please find below suggested code: import pyaedt
origin = r'C:\Data\Support\Test\origin.aedt'
destination = r'C:\Data\Support\Test\destination.aedt'
# Version of AEDT to be used "2023.2" for 2023R2, "2024.1" for 2024R1
version = "2023.2"
hfss = pyaedt.Hfss(projectname=destination, specified_version=version, non_graphical=False)
new_design = hfss.copy_design_from(origin, "designtocopy")
hfss.save_project()
hfss.release_desktop(close_projects=False, close_desktop=False) Screenshot of project origin below: Screenshot of project destination before to running script: Screenshot of project destination after running script: Hope this will answer the question |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amichel0205
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello here is a suggested solution:
Please find below suggested code:
Screenshot of project origin below:
Screenshot of p…