How to save my customized drop menu?

alpha_21885
alpha_21885 Altair Community Member
edited October 2020 in Community Q&A

Hello Hypermesh experts,

 

I create my drop menu to call to my TCL script but I do not know how to save this drop menu.

Everytime I quit HM, I have to open the drop menu again.

=======================================

variable top_menu
    
    set top_menu [hm_framework getpulldowns];
    
    catch {$top_menu delete [.hmMainMenuBar index 'Demo']}
    catch {destroy $top_menu.custom}

    menu $top_menu.custom -tearoff 0
    $top_menu insert 19 cascade -label 'MyToolBar' -menu $top_menu.custom

======================================

Thank you for any recommendation and suggestion!

Answers

  • tinh
    tinh Altair Community Member
    edited June 2017

    Hi,

    just paste your drop-down code into altair/14.0/hm/bin/win64/hmcustom.tcl 

    if it is read-only file, create your own hmcustom.tcl file, and make a shortcut to hmopengl.exe and edit it arguments like this:

    Capture.PNG.805a697c81dd77fbe4004ee7799cf179.PNG

  • alpha_21885
    alpha_21885 Altair Community Member
    edited June 2017

    Excellent! Thank you a ton for your help :))))