- class pyaedt.Desktop(specified_version=None, non_graphical=False, new_desktop_session=True, close_on_exit=True, student_version=False, machine='', port=0, aedt_process_id=None)#
Initializes AEDT based on the inputs provided.
On Windows, this class works without limitations in IronPython and CPython. On Linux, this class works only in embedded IronPython in AEDT.
Version of AEDT to use. The default is
None, in which case the active setup or latest installed version is used.
Whether to launch AEDT in non-graphical mode. The default is
False, in which case AEDT is launched in graphical mode. This parameter is ignored when a script is launched within AEDT.
Whether to launch an instance of AEDT in a new thread, even if another instance of the
specified_versionis active on the machine. The default is
Whether to close AEDT on exit. The default is
Whether to open the AEDT student version. The default is
Machine name to which connect the oDesktop Session. Works only on 2022R2. Remote Server must be up and running with command “ansysedt.exe -grpcsrv portnum”. If machine is “localhost” the server will also start if not present.
Port number of which start the oDesktop communication on already existing server. This parameter is ignored in new server creation. It works only on 2022R2. Remote Server must be up and running with command “ansysedt.exe -grpcsrv portnum”.
Only used when
new_desktop_session = False, specifies by process ID which instance of Electronics Desktop to point PyAEDT at.
Launch AEDT 2021 R1 in non-graphical mode and initialize HFSS.
>>> import pyaedt >>> desktop = pyaedt.Desktop("2021.2", non_graphical=True) pyaedt info: pyaedt v... pyaedt info: Python version ... >>> hfss = pyaedt.Hfss(designname="HFSSDesign1") pyaedt info: Project... pyaedt info: Added design 'HFSSDesign1' of type HFSS.
Launch AEDT 2021 R1 in graphical mode and initialize HFSS.
>>> desktop = Desktop("2021.2") pyaedt info: pyaedt v... pyaedt info: Python version ... >>> hfss = pyaedt.Hfss(designname="HFSSDesign1") pyaedt info: No project is defined. Project...
Analyze all setups in a project.
Change a specific registry key to a new value.
Change the license type.
Apply desktop registry settings from an ACF file.
Change an AEDT registry key to a new value.
Clear all AEDT messages.
Close all projects and shut down AEDT.
Copy a design and paste it in an existing project or new project.
Retrieve a list of the designs.
Retrieve the type of a design.
Disable the autosave option.
Enable the autosave option.
Forcibly close all projects and shut down AEDT.
Retrieve a list of projects.
Retrieve the path to the project.
Save the project.
Current AEDT version.
Current student AEDT version.
Installation path for AEDT.
Messenger manager for the AEDT logger.
Python source directory.
Version keys for AEDT.