01.08.2023 - 15:27
*
[Lösung]
Currently, it seems we don't have the node for access a normal tuple. We only have one for named tuple...
But for this you can try to write py code. Copy & paste the code below into the node "ExecPythonScript" and connect both tuple lists and index value to the 'parameter' of that node. Make sure you first connect the tuple list and then the index, because the order does matter. You should be able to get the results you want. (Make sure the number of list levels is the same as shown in your screenshot, otherwise it won't work.)
def function_to_execute(tuple_list,search_value):
result = []
result.extend([t[1] for t in tuple_list if t[0] == search_value])
return result
This code just does what you describe. If the 1st value in the tuple is equal to the index you provide, it will then return the 2nd value of the tuple back.
For more info, please check the screenshot attached.
Product Owner API, Allplan GmbH
Anhänge (1)
Typ: image/png
188-mal heruntergeladen
Größe: 65,43 KiB
Das Bild konnte nicht geladen werden
Sie sind nicht angemeldet.