2D-->qualityindex

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

Hi,

I changed quality index values(values in criteria Editor ) in 2D->qualityindex by following command.

I created a list of all values named qual_list. I passed that list to command.

eval *createdoublearray 89 $qual_list

*reset_qa_calculator 1 89

Now it is working fine and coloring is done according to the values given by me.

Now how to getback to original model ?

by clicking return i wil get back to original model. what is the command for go back to my original model.

I tried the following commands.

*createmark elems 1 'displayed'

*elementqualitysetup 1

*elementqualityshutdown 0

like that.. they r giving segmentation error and closing Hypermesh.

Any command for that?

Help me.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2009

    Hi,

    Are using some other commands before or after resetting qa params?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2009

    No,

    I am not using any thing. i m calling the following proc.

    proc SetQualityDataintoHM {} {

    eval *createdoublearray 89 $Finallist

    *reset_qa_calculator 1 89

    }

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2009

    I mean to say, after executing

    eval *createdoublearray 89 $qual_list

    *reset_qa_calculator 1 89

    are you getting a panel. Then how you clicking on return button.

    It is not clear, what is you really want to do?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2009

    Actually , I created a GUI with two buttons check and cancel.

    if i clicks on check the above process was called and i m getting the panel and color coding also done according to data in criteria file.

    Now, if i click cancel ; the model should come back to actual mode (without colours).

    i.e;the functionality of cancel is same as 'return ' in qualityindex panel.

    i dont know by which command 'return' is possible.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2009

    You can press the 'return' button in the panel using mouse commands:

    *beginmacro('macroQIstop')  *enterpanel('qualityindex')  *movetomenuitem('return',1,31999)  *button(1,0)  *button(1,0)  *button(1,0)  *button(0,0)*endmacro()
    But this is not available in TCL coding. Another option might be to just enter another panel, which will stop the quality index color coding of your elements:

    proc StopQual {} {hm_setpanelproc QI0}proc QI0 {} { hm_callpanel 'spheres'}
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2009

    Hi,

    Running mouse macro from tcl is possible.

    Save the mouse macro commands in *.msf file and execute from tcl command.

    For help on this check with 7.0 version documentation.

  • tinh
    tinh Altair Community Member
    edited December 2012
    Actually ' date=' I created a GUI with two buttons check and cancel.

    if i clicks on check the above process was called and i m getting the panel and color coding also done according to data in criteria file.

    Now, if i click cancel ; the model should come back to actual mode (without colours).

    i.e;the functionality of cancel is same as 'return ' in qualityindex panel.

    i dont know by which command 'return' is possible.

    [/quote']

    Hi,

    it's a better way that enter qualityindex panel, and use hm_exitpanel to exit. Like this:

    proc SetQualityDataintoHM {} {

    eval *createdoublearray 89 $Finallist

    *reset_qa_calculator 1 89

    hm_pushpanel qualityindex; #enter qualityindex panel

    }

    and bind 'hm_exitpanel' as command of your Cancel button