Lists of points

I have two lists of points
I have to take the points as shown:

  • For example, points [0] list of the first list (in red) I associate them with points [1] list of the second list (in blue)

or [0] list [0] point with —> [1] list [0] point

I could not do it

can you help?

thanksliste

alex please be more precise!

you want to extract just list 1 points 0 and list 2 points1?

or do you want to create a rule like list 1 : points 0,1,2,3… list 2 points 1,2,3…

or what exactly do you have in mind

peter

Your end result is a bit unclear. Maybe you could provide a quick sketch? This is what i understood:

Capture

Thanks Peter and Dimitar
sorry for the English, but I put the figure without color
I take the values of the first list (in red) and associate them with those of the second list (in blue)
You should have a final list:

Point (x = 7655 y = 0.30) from the first list
Point (x = 7655 y = 5.70) from the second list

and then

Point (x = 3.499 y = 0.30) from the first list
Point (x = 3.499 y = 5.70) from the second list

and then

Point (12,499 x = y = 0.30) from the first list
Point (x = 12 499 y = 5.70) from the second list

and then

Point (x = 3.499 y = 6.30) from the first list
Point (x = 3.499 y = 11.70) from the second list

etc.

For these points then insert the wooden beams.
Thanks for collaborationlista punti 1 lista punti2

flatten both lists

drop first four elements from list 2

takle element from list 1 and 2

Unbenanntes Bild

thanks Peter
I settled with Python
I drew the lines blue
now I have to put on the wooden beams
how can I do for you?
and for the material? you can give it with python?

Thank you very much for your cooperation

 

lista punti3

That is some pretty creative use of python, Alex. Good job. Now that you have the curves, you don’t need python for the last step.

Luckily with the changes in 0.74, creating beams is easier than ever. Just load your desired wood beam family into Revit and try the following:

2014-12-09_103532

 

2014-12-09_103817

Thank Dimitar
you can use the node StructuralFraming although I have two different sections on the beam?
and if instead of the curves I lines?

Thank Dimitar
you can use the node StructuralFraming although I have two different sections on the beam?
and if instead of the curves I straight line?

Alex, the easiest thing you could do is to somehow split the list of curves by section and apply each of those to a separate “StructuralFraming” node.