I think I've pushed the Sketcher to its limits. I can no longer rotate a simple shape like a rectangle once I set length constraints. Is this a bug? What can I do?
The rectangle in the example is 99.6 x 36 m. Originally it was very far away from the origin (approx. x=362 km y=5,620 km), because I had put it on an imported terrain model with the corresponding geo-coordinates.
In the German forum I had presented my complete example, which had other problems in addition to the problem described, which I was able to solve thanks to user @chrisb. What remains is this sketch with the rotating problem.
(See Beschränkungen bringen Sketcher an der Grenze? (Invalid constraint index))
Chrisb suspected that the Sketcher has problems with the large values. He recommended other solver settings, which unfortunately didn't work for me. He gave me the hint to involve @abdullah as he knows the sketcher very well.
In the linked file I narrowed down the problem to a simple rectangle. I deleted everything else. It is no longer recognizable (to me) that the rectangle originally is/was so far away from the origin:
Normally I can rotate the rectangle by grabbing a corner point with the mouse and moving it. In the example this fails. The following message appears in the report view:
Code: Select all
23:15:25 Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to move point with the id and type: (1, 2)
23:15:25 App.getDocument('example_large_dimensions').getObject('Sketch005').movePoint(1,2,App.Vector(362596704.000000,5620973568.000000,0),0)
23:15:25 Drag point: Not able to move point with the id and type: (1, 2)
"Invalid constraint index: 9"
The following appears in the report view:
Code: Select all
23:21:46 Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'ValueError'>: Invalid constraint index: 9
23:21:46 App.getDocument('example_large_dimensions').getObject('Sketch005').setDatum(9,App.Units.Quantity('190.000000 deg'))
Thanks,
Jochen
FreeCAD version info:
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: German/Germany (de_DE)
Installed mods:
* Trails 2022.1.0