Skip to content

How to copy a design from a project to another #4155

Closed Answered by amichel0205
amichel0205 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello here is a suggested solution:

  • A project named "origin" has a design named "designtocopy".
  • This design will be copied in an other existing project destination.

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 p…

Replies: 1 comment

Comment options

amichel0205
Jan 30, 2024
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by amichel0205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant