API to prompt user to select entity and get relevant info in Hyperview

Sai91
Sai91 Altair Community Member
edited August 2022 in Community Q&A

Dear All,

I would like to know if there are any commands in HyperView which would prompt user to make selection in the GUI, to make a set or keep it in mark. So that we can retrieve related information from it.

Basically I am searching for "*createmarkpanel" equivalent which is in HyperMesh.

P.S I have seen poI SetSelection Class. But I couldn't find any options, which prompts the user to select Elements or Nodes from GUI. 

Any help would be very much appreciated. 

Answers

  • 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

  • PSiedlaczek
    PSiedlaczek Altair Community Member
    edited August 2022

    Can You please share not compiled version of the script.
    Your compiled TBC was in trial version of Tcl Dev Kit 'tclcompiler' and it refuse to start showing LICENSE ERROR MESSAGE.

    This one doesnt work at all in HyperView .

  • Nagahashi Kouta
    Nagahashi Kouta Altair Community Member
    edited August 2022

    Hi

    sorry for replying late

    please try this one