The pyedb.misc.misc library#

Summary#

list_installed_ansysem

Return a list of installed AEDT versions on ANSYSEM_ROOT.

installed_versions

Get the installed AEDT versions.

current_version

Get the current AEDT version.

current_student_version

Get the current AEDT student version.

Description#

Miscellaneous Methods for PyEDB.

Module detail#

misc.list_installed_ansysem() list[str]#

Return a list of installed AEDT versions on ANSYSEM_ROOT.

Returns:
list[str]

List of environment variable names for installed AEDT versions.

Examples

>>> from pyedb.misc.misc import list_installed_ansysem
>>> versions = list_installed_ansysem()
>>> versions
['ANSYSEM_ROOT241', 'ANSYSEM_ROOT232']
misc.installed_versions() dict[str, str]#

Get the installed AEDT versions.

Returns:
dict[str, str]

Dictionary with version as the key and installation path as the value.

Examples

>>> from pyedb.misc.misc import installed_versions
>>> versions = installed_versions()
>>> versions
{'2024.1': 'C:/Program Files/AnsysEM/v241/Win64', '2023.2': 'C:/Program Files/AnsysEM/v232/Win64'}
misc.current_version() str#

Get the current AEDT version.

Returns:
str

Current AEDT version string, or empty string if no version is found.

Examples

>>> from pyedb.misc.misc import current_version
>>> version = current_version()
>>> version
'2024.1'
misc.current_student_version() str#

Get the current AEDT student version.

Returns:
str

Current AEDT student version string with ‘SV’ suffix, or empty string if no student version is found.

Examples

>>> from pyedb.misc.misc import current_student_version
>>> version = current_student_version()
>>> version
'2024.1SV'