Data Shapes - Expected String Output is [Something else?]

Howdy all!

I wrote myself a handy little script to change the calculation type for Pipework & Ducts and whilst trying to make it more user friendly i encountered an unexpected error.

The script gives the user an option for “System Type” followed by the “Calculation Type” they want

All the python works as intended and works if i manually input a string into IN[1] but when i place what should be a string coming from the MultipleInputForm / RadioButtons Data it apepars to not be a string?

There is a silly work around shown, but i suppose i just want to understand what type of object i am dealing with coming out of the MultipleInputForm so i can modify this script or any others that i intend to use this on.

Any help here would be appreciated, Thank you!

The UI++ nodes return a list of selections if you ask for one user selection or a collection of them (ie: you could have one window to select the system type and calculation type instead of subsequent windows).

Use a List.GetItemAtIndex node or a List.FirstItem node to pull the values out of the list.

Ahhh clever, and that makes total sense now.

Thanks Jacob!

1 Like