Hello,
I am having issues with something that should be really easy, which is to come up with a script that places beams on curves (lines). The intent is to read the coordinates from an Excel file, but I wanted to test first the placement on a single line. I am able to create a curve with two points, but the node "StructuralFraming.BeamByCurve" throws a warning ("Collection modified") and Revit does not model the beam:

The error is as follows:

Is there anything I am missing?
Thank you.