I've encountered something that I believe is a bug: Quite often Dimensions attached to Cosmetic Lines disappear with save-load cycle. It's easy to reproduce: Make a TD drawing, add e.g. some Center Lines, attach new Dimensions to them. Everything looks fine, but save the file, close FreeCAD and reopen the file. Alas, sometimes, the Dimensions fail to load correctly. See the pics below (pic 1 before save), and notice the disappearing angle dimension and distance dimension upon file reload (pic 2) and related error messages. Please note that Dimensions attached to something else than Cosmetic Lines always appear OK, and the Cosmetic Lines themselves appear at correct locations. Also, .FCStd file included.
Code: Select all
16:49:51 DVP::getGeomByIndex(6) - invalid index - size: 6
16:49:51 Dimension has invalid 2D References
16:49:52 DVP::getGeomByIndex(6) - invalid index - size: 6
16:49:52 Dimension003 has invalid 2D References
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30922 (Git)
Build type: Release
Branch: master
Hash: 8ec1279ea8ee32a36fae683b42b5cfc5821734b5
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods:
* Assembly4 0.12.4
* Curves 0.5.8
* Defeaturing 1.2.0
* fasteners 0.4.6
* FCGear 1.0.0
* freecad.gears 1.0.0
* Manipulator 1.4.9
* Reinforcement
* Render 2022.2.0
* sheetmetal 0.2.57
* ThreadProfile 1.83.0
* toSketch 1.0.0