Yes, this happens sometimes when any new point of straight rebar matches with older points. Like in the above straight rebar, when orientation is horizontal let points are (0, 10) and (0, 90) (here we are not considering z-axis because sketch is the base of rebar object and it is always drawn on 2D plane ) and when you change orientation to vertical, new points are (0, 90) and (90, 90). Therefore, on move first point i.e. (0, 10) to new point i.e. (0, 90) by (sketch.movePoint(0, 1, new_point, 0)), FreeCAD gives below error:
Code: Select all
Updating geometry: Error build geometry(0): Both points are equal
Invalid solution from DogLeg solver.
However, we can overcome this error by following ways:
1. Press "Apply" or "Ok" button twice.
2. We can add some error value or a random number like 0.00001 to new points. I don't know it is a right approach or not.
Regards,