- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a function that creates a dynamic form with multiple radial buttons with options passed to the function. The function then returns the option that was selected. I just created a new script where I have options involving selecting parts/assemblies in the current model and the issue is with the default modal form nothing can be selected while the form is displayed. I tried changing the form to a modeless form but this causes issues because of how the function the form is generated from is structured.
The function starts by generating the form while hidden, then it shows the form, while modal everything pauses until the form is hidden after a button is clicked, then the function gets the selection made on the form and returns that to the calling script. Changing the form to modeless causes the rest of the function to run and return a blank value to the calling function while the modeless form is still active.
The only suggests I can find on using a modeless form is to move the code after the form is shown into a button click on the form. This will not work for me as the function will end and I won't be able to return a value to the calling script.
Is it possible to use a modeless form in a function that has to return a value from that form?
Solved! Go to Solution.