User Intraction node selection event and display external data in GUI

Pushpendra
Pushpendra Altair Community Member
edited October 2020 in Community Q&A

I am new in hype work customization. can you please let me know, how to select a node or is there any selection event for object selections.

 

I want to create small application where, user can select a element node and once node is selected then corresponding data to that node will be displayed in GUI or in txt file programmatically. 

 

Data is saved local machine in .csv or .xlsx file forma.

 

Thanks,

Pushpendra

Tagged:

Answers

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

    What do you mean 'corresponding data' of node/element? Node coordinates?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2020

    Are you familiar with the TCL programming language to start with? If not, I would suggest to start to read some documentation on the TCL website: http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html

     

    All hypermesh commands can be found in the Hypermesh reference guide (in hypermesh go to help => Hyperworks help home) in section scripts. It's just a very long list (divided into 4 parts) and no clear explanation when to use what command, so just go through the list and see what you need.  Or use search.

    In your case you will need the *createmarkpanel (to enable user to select a node) and hm_getvalue (to get the data you need, check under 'data names' what data can be extracting for what entity type) commands.

     

  • Pushpendra
    Pushpendra Altair Community Member
    edited August 2020

    Nguyen, thanks for the reply.

     

    I have a data.xlsx which is generated by another application. which is having Node ID, Node Coordinated, Element name, Stresses value , amplitude and many more details. I want to showcase these details in GUI window once user selected a particular node.

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

    Nguyen, thanks for the reply.

     

    I have a data.xlsx which is generated by another application. which is having Node ID, Node Coordinated, Element name, Stresses value , amplitude and many more details. I want to showcase these details in GUI window once user selected a particular node.

     

    With Hypermesh, the pre-processing software, you have all these informations, but not about results (stress, displacements,...)

    For results, you have to use Hyperview, the post-processing software.

  • Pushpendra
    Pushpendra Altair Community Member
    edited August 2020

    Thanks Loesje for detailed information.

     

    as you said, I will go through the help reference prior to start TCL programming.

     

    I am more familiar with C# dot net programing, would it be help full in TCL programming.

     

  • tinh
    tinh Altair Community Member
    edited August 2020

    If you knew C# , you could know C also.

    Register a callback proc to hm_framework to catch user selections

     

    this post may help