Add a Button to HyperWorks that Runs a Custom Script

Ben Buchanan
Ben Buchanan
Altair Employee
edited January 2022 in Altair HyperWorks

Hello Altair Community!

I wanted to share a quick video with you which demonstrates the process of adding a button that runs a custom script, using extensions.

This process involves 3 main files:

  1. extension.xml
  2. AddAButton.xml
  3. Your script

For more information about the extension.xml and AddAButton.xml files (and the Extension Manager), refer to the HyperWorks Desktop Reference Guide: Extensions.

You can access the script I used in this video via the Script and Model Library. Note: To work in this case you need to remove the procedure call at the end of the file.


Comments

  • Ajay Prabhakaran
    Ajay Prabhakaran Altair Community Member
    edited August 2023

    Hello Ben,

    Thanks for the very good demo. I have a question here. Do you know how can we load the "extension.xml" automatically using tcl script or is there any api for that. I can understand that its only a one time process to load and once loaded it will be retained. But still i want an automated way to load these extension to users hm. So kindly guide me with any api to load the extension.

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited August 2023

    I just completed another blog for the new version of extensions that can be found below.

    https://community.altair.com/community?id=community_blog&sys_id=f497a24b97d87d10e3b0361e6253aff9

    Hope that helps.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.