TechDraw: Strange rounding error

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
dobrowolsk
Posts: 1
Joined: Tue Jan 31, 2023 12:31 pm

TechDraw: Strange rounding error

Post by dobrowolsk »

Image

These two holes have the same y value, as defined by a sketch. A few minutes ago, this worked. Then I changed some things in the sketches that make up this part. This also happens for other parts that have the same x or y values. Sometimes closing and re-opening the file helps, but in some cases, it doesn't.

I have tried, without success :
  • to constrain the hole in another way,
  • to fiddle around with the format spec of this dimension
  • to fiddle around with the global format settings and with the dimension number format settings in the TechDraw settings dialog
A few minutes later this happened. These holes are constrained to have the same x value, per the sketch that creates them:
Image
These are the properties of this dimension:
Image

According to all the settings, it should never happen that something like "0.000000000000012" ever comes into existence.

This is the file in question: http://www.dobrowolsk.de/dobro/Bohrungs ... port.FCStd

Any idea? Thanks!

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git)
Build type: Release
Branch: (HEAD detached from 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * 3D_Printing_Tools
  * A2plus 0.4.60h
  * Assembly4 0.12.5
  * BOLTSFC
  * Curves 0.6.5
  * fasteners 0.4.54
  * kicadStepUpMod 10.17.1
  * Manipulator 1.4.9
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: TechDraw: Strange rounding error

Post by Shalmeneser »

I don't have answer to your question,
* you should TechDraw when your object is very stable
* you should not repeat same dimensions twice in a sketch. Use geometrical constraints instead.
* You should never use zero dimensions. Use geometrical constraints instead.
* You should do multiple but simple sketches : KISS method : keep it stupidly simple
* you should not give dimensions for all holes in TechDraw (too much data) but provide a X/Y/R TechDraw_SpreadsheetView instead. Use this SpreadSheet for your sketches also.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw: Strange rounding error

Post by chrisb »

dobrowolsk wrote: Tue Jan 31, 2023 12:55 pm Any idea? Thanks!
I don't see the issue here. Try the following:
- Mark the whole model for recompute and recompute
- Reload the file
- Restart FreeCAD
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply