How to combine sublists such that 0index of second list will come after 0index of first list and so on

Hey, i am new to dynamo and trying to combine 2 lists in the picture below. I have 2 lists. First, with 2 elements, 2nd with one element sublists. I want to add the 2nd list with one element sublist such that all the elements will be at the middle index of the 1st list in the same sublist category.
If it is possible to combine such that 0index of 2nd list will will come after 0index of 1st list and so on that also fine after that i can chop them into a sublists of 3list.


Myway.dyn (51.4 KB)

A little bit background for this project. I want to make a list with 3 pointed (start, mid, end) sublist on the curved path i have defined. I want 3 pointed sub list for 3point adaptive bridge family.

https://dictionary.dynamobim.com/#/BuiltIn/Action/Insert(list_var[]..[]-element_var-index_int)

Watch your list levels, I think @L2 and @L1 will do the trick.

1 Like

can you please elaborate a bit please, I know levels but what node will make it happen?

Check the link I posted above. :slight_smile:

I have tried it but couldn’t achieve what i want. I inserted 2nd list(with one element) into a 1st list. And by adjusting levels it produced many things but a nested list with 3 elements

@jacob.small, with the help of yours I have achieved what i want thank you very much. Do you think this is efficient way to do it? or is it very bad scripted? Below is the picture of how I did it

Well it certainly works. Where are the points originating from? Zoom in so you can easily read the nodes and then use the little camera button in the top right corner, and upload the image which is saved.

I really didnt get what is your question. Nodes seem to be clearly seen. You want me to zoom in or out the background? or zoom out the nodes to see all other nodes? I will attach the dynamo file if you want to check it. I have divided it into 3 points but i coudn’t make a bridge I wanted. and I dont know the problem yet. Below are the files and pictures. Bridge Adaptive 3 points type A.rfa (976 KB) Myway.dyn (66.1 KB)

The problem might be from the bridge family i used. I was trying to recreate the Dynabridge package, since it is not working properly with later revit versions. I wanted to do it manually, however, I am struggling very much.

That button.

My thought is that there may be a better way to gather your points.

Here it is. I have edited. so that my thinking process will be much clearer. Here, is what i want to achieve. I want to trace the bridge deck along the curved path I have defined with adjustable point in the middle. For that i need 3 points (start, mid, end). I have done all the things required, however, final solution is wrong. It seems stemming from the adaptive famili componenet, which i took from internet. Below is the pictures.


Just as @jacob.small said.

I have updated my script above, can you check it and comment on it? I achieved what i wanted from list but the final bridge isn’t right. I am assuming it is because of the adaptive family component, since I took it from internet (I dont know how to do them yet).

If you are talking about the post above mine your list levels are still not correct.