I’ve been experiencing the same issues as described but with other curve shapes. In some cases when the polycurve is straight, I managed to re-create a single curve from the start point and end point, but for polycurves containing more than one line in different directions, “An internal error has ocurred” shows.
Does anyone experienced the same issue and, the most important, already solved that issue?
From my script, I get several polycurves that do what I want, but when it comes to create the rebars, the “An internal error has ocurred” shows. In the image you can see the number of curves contained in the polycurves.
What does the “The input PolyCurve must be closed” mean? I thought that my policurves had some gaps that the Polycurve.ByJoinedCurves missed, so I created the same polycurve using Polycurve.ByPoints and got the same result:
i’m using archi-cad node pull points onto plane, try and work with points as it will make things smoother, but you can implement the same basic idea in other ways and probably with code.
the same operation failed before using this method