Hypermesh - Drop Down Menu

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

Hi,

 

Could you provide me some sources or example codes, where I can see the method & commands to write my own menu in Hypermesh?

I want to populate the menu list with the macros and access them much easier than under standard User button.

 

Thank you for your advices,

 

Peter

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2014

    Hi Peter,

     

    you can refer to help documents HyperWorks Desktop Applications > HyperMesh > HyperMesh Tutorials > Customization > Scripts for examples on writing macros.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2014

    Hi Prakash,

     

    Thank you for your reply. The section 'scripts' of hypermesh documentation describes and gives some examples about the creation of the button on the user page of the utility menu as mentioned in my post above. I am interested in adding of the additonal section e.g. 'Macros' in general menu on the top of the application (see version 12) and generate submenu in it to have the better access and organisation of the macros. I would appreciate any additoinal sources.

     

    Peter

  • tinh
    tinh Altair Community Member
    edited June 2014

    Hello Peter

    menu is a part of tk instead of hypermesh, so you can find example about menu in tcl/tk

    manual is here http://www.tcl.tk/man/tcl8.5/TkCmd/menu.htm

    and example is in tcl/tk you can download tcl/tk from activestate

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2014

    Hi tinh,

     

    Thank you for the website, but could you be a bit more specific? I can not find there any examples with the pull-down menu.

     

    Regards,

    Peter

  • tinh
    tinh Altair Community Member
    edited June 2014

    Hi

    you can look it up in cascade menu

    http://www.beedub.com/book/3rd/Tkexampl.pdf