Since I am new to the FreeCAD forums, I am not sure I am doing this correctly. I do not want to respond to any posting; I want to initiate a new one, but I see only one button, "Post Respond."
Anyway, my question is how to increase the decimal precision of the WorkFeature output. For example, when I measure a radius, WorkFeature gives me only two decimal digits of precision and if I set four digits in the general FC preferences, WorkFeature just pads the extra digits with zeroes.
See attached file. The object "Circle" is the circular opening of the head of the bolt, where the Allen wrench would be inserted. I measured its diameter with the diameter dimensioning tool of the Draft workbench (I should have probably pressed SHIFT to get the radius instead) and that measurement agrees with the radius measured in the sketcher (which contains its own circle). However, when I compare the two, WF gives me only two decimal digits, which I can verify through the Python console (copying and pasting from the Python console—observe the number-formatting string):
>>> print('The radius read by WF is %1.5f mm, while Draft diameter gives %s' % (App.ActiveDocument.Circle.Radius, App.ActiveDocument.Dimension.Distance) )
The radius read by WF is 1.15000 mm, while Draft diameter gives 2.29136 mm
As you can see, the diameter measured with the Draft dimensioning tool is a bit less than twice the radius measured with the WF tool.
- (17.13 KiB) Downloaded 35 times