Adding Custom button to HyperMesh Utility Window

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

HI,

I'm new to hypermesh customization, I'm trying to create custom button in hypermesh to run particular Tcl script.

 

thank you,

sixz

 

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited May 2019

    Hi Sixz,

     

    Please share a screenshot of were you want to place the button. 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2019

    <?xml version="1.0" encoding="UTF-8"?>screen1.thumb.PNG.2143f1a7b7acc0ea89e0b117568f94f2.PNGtrying to put button somewhere in this tab, can you share where can I find Button UI libraries.

  • Pandurang
    Pandurang Altair Community Member
    edited May 2019

    HI

     

    Create one userpage.mac file.

     

    code in that file to create button:

     

    *createbutton(5, 'Deflection of Cantilever',   -1, 0, 10, YELLOW, 'Launch Solution To Cantilever Beam.', EvalTcl, 'C:\Users\pdd914713\Documents\Test.tcl')

    *beginmacro('CantileverBeam')

    *endmacro()

     

    keep this file in current working directory...then restart the Hm.

     

    You can find this info in HW help as well.

     HyperWorks Desktop Applications > HyperMesh > HyperMesh Tutorials > Customization > Scripts: