Command to select components in Hyperview TCL script

Altair Forum User
Altair Forum User
Altair Employee
edited April 2023 in Community Q&A

Hello Experts,

I've been writing myself a TCL Script in Hyperview to help me with my post-processing. I'm nearly done, but missing one command to complete the work...

Within the contour panel, you can set which result you want to plot (stress, strain, displacement, etc.) and on which selection you want to plot it. You can chose your selection by component, assemblies, or elements, before clicking apply and getting the desired contour. So what are the commands to make that selection through a script??? I can do it just fine by clicking on the screen, but I can't find what I'm looking for in the tcl manual.

If anyone knows, please help... it will be appreciated

Christiane

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2013

    The *createmarkpanel will prompt you to select a list of components when you run the script and store them in a 'mark'

    *createmarkpanel components 1 'Please Select the Components'

    set complist [ hm_getmark components 1 ];

  • Adeline War_20893
    Adeline War_20893 Altair Community Member
    edited May 2022

    @Altair Forum User What would be the code to select certain component to view results in Hyperworks?

  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited June 2022

    Hi

    I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:

    set eList [::post::panelselect::getuserselection Elements]
    set cList [::post::panelselect::getuserselection Components]
    set nList [::post::panelselect::getuserselection Nodes]

    Just for your reference

     

  • sanket_patil
    sanket_patil Altair Community Member
    edited June 2022

    Hi

    I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:

    set eList [::post::panelselect::getuserselection Elements]
    set cList [::post::panelselect::getuserselection Components]
    set nList [::post::panelselect::getuserselection Nodes]

    Just for your reference

     

    Hello Nagahashi Kouta,

    Can you guide me to get the reference guide of TCL commands to do programming in HV?

    Regards,

    Sanket

  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited June 2022

    Hello Nagahashi Kouta,

    Can you guide me to get the reference guide of TCL commands to do programming in HV?

    Regards,

    Sanket

    Hi,

    I'm not a native english speaker,I'm not sure your actual meaning by "guide me to get the reference guide of TCL commands to do programming in HV".If you have any question ,just put it on the forum , many engineers or developers like me will be happy to help you.

  • Adeline War_20893
    Adeline War_20893 Altair Community Member
    edited April 2023

    Hi

    I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:

    set eList [::post::panelselect::getuserselection Elements]
    set cList [::post::panelselect::getuserselection Components]
    set nList [::post::panelselect::getuserselection Nodes]

    Just for your reference

     

    Thank you