Add a Button to HyperWorks that Runs a Custom Script
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:
- extension.xml
- AddAButton.xml
- 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
-
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.
0 -
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.
1