Getting Node ID information interactively

Rushabh Parikh
Rushabh Parikh Altair Community Member
edited February 2023 in Community Q&A

Hello,

For the script I am working on, I need to interactively take say 50-60 node id from the model. That is the user shall click on 50-60 nodes (this number can be taken as an input) and those node ids needs to be recorded. Is there a way I can do this?

Regards,

Rushabh Parikh

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited February 2023

    *createmarkpanel would prompt the user to select entities.  If you want to limit how many nodes they can pick you could use hm_marklength to check the length of the mark (how many entities they selected) and then use tk_messagebox to tell them if they didn't select the right number of nodes.

    Is that what you are looking for?  Maybe tell me more about what you are trying to do and why to see if there is another way to do it too.