Is there any documentation for the Ansys.UI.Toolkit?

Options

With only the helper comments that come up with the autocomplete, it is very difficult. For example, adding a RadioButton to a UI does not follow the same protocols as a Button

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 279
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

    The short answer is no... this is not something that has published documentation.

    You may want to use the dir(myobj) function on controls as you create them to see what is available for each control.

    The Bolt Tools Add on in Mechanical (2022.2 and above) also has a number of examples of using the toolkit. You can look at the directory of that add on and look at WizardControlsV2.py for a specific example of implementation.