Open project in pyAEDT

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: 27
    10 Comments Solution Developer Community of Practice Member Name Dropper Ansys Employee
    ✭✭✭✭
    edited December 2023

    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,