Keep list structure

Hi,

I got lost
I want to maintain the list structure as in the watch node, but it doesn’t work

I can not understand you. Do you mean that you want a list of items not a list of nested lists?

Please clarify.

I want the last node (Parameter.Value) looks the same as Watch node.
So the 0 list got 9 items (0-8) etc. → the first 9 items in the Parameter.Value must be in the 0 list.
For clarification see also Element.GetLocation node.

List.FirstItem node should work. When you pull the parameters you get a list per element, not an item per element so you will have to extract what you are after in the end.

That said… this is not a good way to achieve the result you are after as you’re putting 14905 items into memory (in this case, in other cases it could be 14905000000000 items) when you only want 271. This will lead to poor performance and even unnecessary crashes so best to use another method.

Element.GetParameterValueByName is how I would do this, and that will maintain your structure directly.

I am ashamed😯

1 Like