An ACT scripted extension has two basic components:
XML extension definition file: Defines and configures the content of the extension.
IronPython script: Defines the functions that are invoked by user interactions and implements the extension's behavior.
An extension can potentially be created using additional components such as external Python libraries or even C# code. However, the two components described above represent the basic definition for an extension.
This section uses a very simple example to demonstrate how to define a scripted
extension. The extension ExtSample1 customizes ANSYS
Mechanical, adding a single-button toolbar to its interface. When this button is clicked, a
dialog box appears and displays the following message: High five! ExtSample1 is a
success!
Depending on the ANSYS product to be customized, the content of the extension differs, but the basic organization of an ACT extension remains consistent with the example presented.
Note: The extension ExtSample1 is included in the package ACT
Developer's Guide Examples, which can be downloaded from the ACT
Resources page on the ANSYS Customer Portal.
For more information, see Extension Examples.