How can i set *createmarkpanel command to gui?

Seçkin13
Seçkin13 Altair Community Member
edited October 2020 in Community Q&A

Hi all,

 

I created an GUI in hypermesh. However i can not activate command from TCL gui.

 

Here is a simple code 

 

::hwtk::button $f.b1 -text 'Text Button' -help 'Text only' -command {createentity comps name=component3}

 

If anyone knows how to do that, could you please show me?

 

Regards

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited January 2020

    Try to put your commands in a proc & call this proc via -command ?

    Remember : the valid command is '*create.....' not 'create....'

  • Seçkin13
    Seçkin13 Altair Community Member
    edited January 2020

    Hi thanks for answer. I used that tools however i couldnot finish.

     

    If you have any example could you please share with me 

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited January 2020

    Hi,

     

    You have to pack after creating.

     

    ::hwtk::button $f.b1 -text 'Text Button' -help 'Text only' -command {*createentity comps name=component3}

    pack $f.b1

  • Seçkin13
    Seçkin13 Altair Community Member
    edited January 2020

    Thanks you both @Livil Lyle and @Q.Nguyen-Dai