Name and number of space in shared parameter

Hello

I am trying to retrieve the name and number of space to put them in shared parameter.
I get the name and space number but monn script does not put the information in the right element.
I do not understand why, can you help me

Thank you

If everything has the same name they’ll just all end up at the bottom position the list gives.

Hello PauLtus,

I do not understand what you mean by finishing everything at the bottom position

I’m getting the idea I’m not really understanding what’s going on. I thought the list with all the LT’s list was supposed to be a list of names.
What helps is adding some “watch” nodes to the code and check first what exactly is going into the Element.SetParameterByName node.