hm_info executing command output-*creatamarkpanel.

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

Hi,

I wanted to know how I can get some kind of notation in tcl macro so that, it will tell now *createmarkpanel command is going on. This can be use to avoid crashing when user pressess many times on same tk window button.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2007

    Hi rahulj,

    I don't understand your question: you can display a message with the *createmarkpanel command (last argument 'message'):

    *createmarkpanel(entity type, mark id, message)
    If you turned the user messages off by using

    hm_blockmessages 1
    you can although display messages with:

    hm_usermessage 'I really have something to tell'or hm_errormessage 'Dear user - you really f*#?ed it up ...'
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2007

    Hi Rahulj,

    Another option would be to disable the tk button as part of the routine executed when it's pressed, and you can reactivate it later in the routine if you want. You can modify the status of buttons as shown:

    $page2.f4.b1 configure  -state disabledor $page2.f4.b1 configure  -state normal
    This might encourage users to look elsewhere instead of still clicking on the button.
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2007

    Hi Dear,

    Sorry for very late reply.

    Actually what happens if user clicks button(from tk macro window). Hypermesh gives segmentation error and come out. So I wanted to know, how to overcome this. WE can upost the macro dialogue but still some time it is required to be apreared. How to script will know that panel is activated in hm window.

    Thanking you.