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

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: 336
    25 Answers First Anniversary 100 Comments 25 Likes
    ✭✭✭✭

    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.