Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating two designs in the same project and same aedt is trivial #5510

Open
hui-zhou-a opened this issue Nov 30, 2024 · 2 comments
Open

Creating two designs in the same project and same aedt is trivial #5510

hui-zhou-a opened this issue Nov 30, 2024 · 2 comments
Labels
enhancement New features or code improvements
Milestone

Comments

@hui-zhou-a
Copy link
Contributor

hui-zhou-a commented Nov 30, 2024

Description of the feature

When there are more than one active AEDT, creating two designs in one project is trivial. Below is a safe way to do it,

ds = Desktop(specified_version="2024.2",
             non_graphical=False,
             new_desktop_session=True,
             close_on_exit=True,
             student_version=False)

h3d = Hfss3dLayout(
    project="project_1",
    design="h3d",
    port=ds.aedt_process_id,
    aedt_process_id=ds.aedt_process_id,
    version=ds.aedt_version_id)

ipk = Icepak(
    project="project_1",
    design="ipk",
    port=ds.aedt_process_id,
    aedt_process_id=ds.aedt_process_id,
    version=ds.aedt_version_id)

Steps for implementing the feature

It would be better if the user can do below

ds = Desktop(specified_version="2024.2",
             non_graphical=False,
             new_desktop_session=True,
             close_on_exit=True,
             student_version=False)

proj = ds.project(name="project)

h3d = proj.Hfss3dLayout(name="h3d")

ipk = proj.Icepak(name="ipk")

Useful links and references

No response

@hui-zhou-a hui-zhou-a added the enhancement New features or code improvements label Nov 30, 2024
@Samuelopez-ansys
Copy link
Member

Hi @hui-zhou-a ,

This would mean creating another layer (class) for project management, and this is for now not considered in the PyAEDT roadmap But I do agree, that we could add an "add_new_project" method at Desktop level. Because for now, there is only New Project addition at Design level.

Something like:

ds = Desktop(specified_version="2024.2",
non_graphical=False,
new_desktop_session=True,
close_on_exit=True,
student_version=False)

proj_name = ds.new_project(name="project)

h3d = proj.Hfss3dLayout(name="h3d", project=proj_name)

ipk = proj.Icepak(name="ipk", project=proj_name))

What do you think?

@hui-zhou-a
Copy link
Contributor Author

I agree.

It should also be able to list all projects
ds.projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

No branches or pull requests

2 participants