2.13. Creating User-Defined Buttons

The User Buttons group enables you to create, edit, manage, export, and import your own toolbar buttons. Selecting the Manage option opens the Button Editor.

This panel contains the following features and options:

  • Save: This option saves button information and publishes it into the user group.

  • Import: This option enables you to open and import an existing Python (.py) file that specifies a button. The content of the imported file populates the Button Editor dialog.


    Note:  The Python file must contain the appropriate structure to be imported as a button. Ansys recommends that you first export a button to see the necessary structure for your .py file, then copy that structure to the file you wish to import.


  • Name: Enter a name (label) for the button.

  • Collection Editor: The folder icon opens a panel that enables you to manage existing buttons. It contains option to edit, export, or delete the button.

  • Image: Select this icon to assign an image that to the button.

  • Description: The description pane enables you to enter a description of what action the script performs - it is a tooltip.

  • Script: You enter your python script into this pane.

Example

Here is an example of how to create a Pressure load. You can find this example in the ACT Console.

The above example creates the following user-defined button.