🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to get selected value from hwtk::selectlist widget

User: "Andrew_22514"
Altair Community Member
Updated by Andrew_22514

I'm trying to create a custom GUI window for a script I'm working on. I can't figure out how to use the selection picked by the user in the HWTK Select List widget. My select list widget is used to select one of the available material collectors in the model. When the user presses the OK button I want to get the ID number of the material collector the user clicked on. How do I do this?

Minimum working example of code attached at "forum_post_mew_selectMaterialList.tcl.txt"

Screenshot of what I'm working with in HyperMesh 2017:

image

Find more posts tagged with