How can be a custom button with some UI can be added to Ansys Workbench

surajsalvi Member Posts: 5
First Comment

I want to customize the Ansys Workbench UI to add a tab and button as shown below :

When I click to Custom Button it should open another custom window as shown below and I can able to provide some action to button click :

How this can be done ?


  • Chris Harrold
    Chris Harrold Member, Administrator, Employee Posts: 90
    10 Comments First Anniversary First Answer Ansys Employee

    Hello, @AKD-Scripting-Team might be able to take a look and help.

  • Pierre Thieffry
    Pierre Thieffry Member, Moderator, Employee Posts: 87
    25 Answers 10 Comments 25 Likes First Anniversary

    Hi @surajsalvi , for the button creation, I recommend you check this discussion

    For the custom window, I believe there could be different solutions. What should this window do? Could you elaborate a little more on your need?

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee Posts: 123
    25 Likes 5 Answers 10 Comments First Anniversary

    For the custom button, you should use ACT as Pierre explained. For the custom window, you can use any option supported by IronPython. If you only need to run on Windows, many people choose to use Windows Forms. For example:

    import clr
    from System.Windows.Forms import Application, Form
    class HelloWorldForm(System.Windows.Forms.Form):
        def __init__(self):
            self.Text = 'Hello World'
            self.Name = 'Hello World'
    form = HelloWorldForm()