Change the name of @2 with @1 from other list

Hi to all

I have 2 list with I want to merge with the following result:

List 1
@2” List
@1” Text 1
Text 2
Text 3
List 2
@3” List
@2” 0 List
@1” Other Text 1
Other Text 2
1 List
Other Text 1
Other Text 2
2 List
Other Text 1

And have the result:
@3” List
@2” Text 1
@1” Other Text 1
Other Text 2
Text 2
Other Text 1
Other Text 2
Text 3
Other Text 1

And I’m struggling with it.

As you can see in the image looks like I’m far from the desired result

Tank you in advance

Is this what you’re looking for?

An image of the correct list structure would be easier to understand.

1 Like

Hi Nick

Sorry for the under average text formatting :fearful: Now I see it is very confusing

Maybe with this image is easier to know what I’m looking to achieve

Is this what you’re after?

If Jonathan didn’t get you what you want, an image of your expected outcome, with the values you’re using, would be the easiest thing to understand.

Hi

with Jonathans example my output is this:

And I’m searching something like this:

That isn’t how lists work though. You can’t name a list. I think you are looking for a dictionary, where you can name the key and put the wall and modelcurve as its values.

1 Like

Thank you all for the help.

I just went back (after holidays) to work with the script, and I decided to go with other route, as the final result wasn’t helpful for the next step I was planning.