Dear Revit specialists,
I would like to get 2 sub lists as output (list.getitematindex).
The output have to be created in the following way:
I would like to get every item at index 0 and 1 (list.indexof) of list.create.
Can anyone help me?
Dear Revit specialists,
I would like to get 2 sub lists as output (list.getitematindex).
The output have to be created in the following way:
I would like to get every item at index 0 and 1 (list.indexof) of list.create.
Can anyone help me?
Thanksss!!
The reason you’re not getting what you want in your initial post is because you’re using the wrong list level. Level 2 means it’s going to apply the Level 2 list ([0,1]
) to each input list. This is just going to duplicate your original list. Level 1 would get index 0 first then index 1 and give you the list structure you’re looking for.