Open project in pyAEDT

Options
GT
GT Member Posts: 2
edited December 2023 in General Language Questions

Hi!

Instead of creating a project from scratch in pyAEDT, like:

SETUP

desktopVersion = '2023.2'
sName = 'pyAEDT'
sType = 'TransientXY'
pName = pyaedt.generate_unique_project_name()
dName = 'Test_2023'
non_graphical = False

Model = pyaedt.Maxwell2d(projectname=pName,
specified_version=desktopVersion,
designname=dName,
solution_type=sType,
new_desktop_session=False,
non_graphical=non_graphical

)

I wonder if one can open a already created project (that was made in Maxwell), something like this:

pyaedt.Maxwell2d.open_project('path_to_project')

"""
Make changes...
Analyse All...

"""

SOLVED

Tagged:

Comments

  • Vinodkumar13
    Vinodkumar13 Member, Employee Posts: 25
    First Comment First Anniversary Ansys Employee Name Dropper
    edited December 2023
    Options

    Hi @GT ,

    To open an already existing file, you can use this code and make changes

    """
    from pyaedt import Maxwell2d
    MW = Maxwell2d(path)
    """

    Thanks and Regards,