🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Adding Custom button to HyperMesh Utility Window

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

HI,

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

 

thank you,

sixz

 

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hi Sixz,

     

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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    <?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.

    User: "Pandurang"
    Altair Community Member
    Updated by Pandurang

    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: