ansys / pyaedt
AEDT Python Client Package
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing ansys/pyaedt in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewEnglish | 中文 What is PyAEDT? PyAEDT is a Python library that interacts directly with the API for Ansys Electronics Desktop (AEDT) to make scripting simpler. The architecture for PyAEDT can be reused for all AEDT 3D products (HFSS, Icepak, Maxwell 3D, and Q3D Extractor), 2D tools, and Ansys Mechanical inside AEDT. PyAEDT also provides support for circuit tools like Nexxim and system simulation tools like Twin Builder. Finally, PyAEDT provides scripting capabilities in Ansys layout tools like HFSS 3D Layout. The Ansys Electronics Database (EDB) is included with PyAEDT as a dependency and is recommended for any automated manipulation and setup of layout data for PCBs, electronic packages, and integrated circuits. The PyAEDT class and method structures simplify operation while reusing information as much as possible across the API. Install on CPython from PyPI You can install PyAEDT on CPython 3.8 through 3.12 from PyPI with this command: Install PyAEDT with all extra packages (matplotlib, numpy, pandas, pyvista, ...): > **Note:** The [all] installation target includes for PDF export functionality, which is under license LGPL v3. For license-sensitive environments, install PyAEDT without [all] and add dependencies individually. You can also install PyAEDT from Conda-Forge with this command: PyAEDT remains compatible with IronPython and can be still used in the AEDT Framework. PyAEDT compatibility requirements PyAEDT has different compatibility requirements based on its version. Below is an overview of the compatibility matrix between PyAEDT, Python versions, and AEDT releases:• PyAEDT Version ≤ 0.8.11:• Python Compatibility:• Compatible with IronPython (Python 2.7).• Compatible with Python 3.7 and versions up to Python 3.11.• AEDT Compatibility:• All tests were conducted using AEDT 2024 R1.• 0.9.0 is licensed under the MIT License PyAEDT includes functionality for interacting with the following AEDT tools and Ansys products:• HFSS and HFSS 3D Layout• Icepak• Maxwell 2D, Maxwell 3D, and RMXprt• 2D Extractor and Q3D Extractor• Mechanical• Nexxim• EDB• Twin Builder• EMIT Documentation and issues Documentation for the latest stable release of PyAEDT is hosted at PyAEDT documentation. In the upper right corner of the documentation's title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions. You can also view or download PyAEDT cheat sheets, which are one-page references providing syntax rules and commands for using the PyAEDT API and PyEDB API:• View or download the PyAEDT API cheat sheet.• View or download the PyEDB API cheat sheet. On the PyAEDT Issues page, you can create issues to report bugs and request new features. On the PyAEDT Discussions page or the Discussions page on the Ansys Developer portal, you can post questions, share ideas, and get community feedback. To reach the project support team, email pyansys.core@ansys.com. Dependencies To run PyAEDT, you must have a local licenced copy of AEDT. PyAEDT supports AEDT versions 2022 R1 or newer. Contributing For comprehensive information on contributing to the PyAnsys project, see the PyAnsys developer's guide. Note that PyAEDT uses semantic naming for pull requests (PR). This convention greatly simplifies the review process by providing meaningful information in the PR title. The following prefixes should be used for pull request name:• "BUILD"• "CHORE"• "CI"• "DOCS"• "FEAT"• "FIX"• "PERF"• "REFACTOR"• "REVERT"• "STYLE"• "TEST" Student version PyAEDT supports AEDT Student versions 2022 R1 and later. For more information, see the Ansys Electronics Desktop Student - Free Software Download page on the Ansys website. Why PyAEDT? A quick and easy approach for automating a simple operation in the AEDT UI is to record and reuse a script. However, disadvantages of this approach are:• Recorded code is dirty and difficult to read and understand.• Recorded scripts are difficult to reuse and adapt.• Complex coding is required by many global users of AEDT. The main advantages of PyAEDT are:• Automatic initialization of all AEDT objects, such as desktop objects like the editor and boundaries• Error management• Log management• Variable management• Compatibility with IronPython and CPython• Simplification of complex API syntax using data objects while maintaining PEP8 compliance.• Code reusability across different solvers• Clear documentation on functions and API• Unit tests of code to increase quality across different AEDT versions Example workflow• Initialize the Desktop class with the version of AEDT to use.• Initialize the application to use within AEDT. Connect to AEDT from Python IDE PyAEDT works both inside AEDT and as a standalone application. This Python library automatically detects whether it is running in an IronPython or CPython environment and initializes AEDT accordingly. PyAEDT also provides advanced error management. Usage examples follow. Explicit AEDT declaration and error management Implicit AEDT declaration and error management Remote application call You can make a remote application call on a CPython server or any Windows client machine. On a CPython Server: On any Windows client machine: Variables Modeler License PyAEDT is licensed under the MIT license. PyAEDT provides an optional PDF export feature via the class . It requires the fpdf2 library, which is licensed under the GNU Lesser General Public License v3.0 (LGPLv3). PyAEDT makes no commercial claim over Ansys whatsoever. This library extends the functionality of AEDT by adding a Python interface to AEDT without changing the core behavior or license of the original software. The use of PyAEDT requires a legally licensed local copy of AEDT. To get a copy of AEDT, see the Ansys Electronics page on the Ansys website. back to top Indices and tables• Index• Module Index• Search Page