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?
Following, If I don’t re-create a line from a straight polycurve, it shows the error. So I don’t think the issue is due to the bend diameter.
Just to show what I’m trying to do. I’m working on wall displacements, so I manageg to create a bar that recognizes the displacement and detours it’s path:
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
good luck!