Units in Sketcher

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Units in Sketcher

Post by jmaustpc »

We used to call it decimal inches in Australia too.

Dan, back in the early 1990s, I once had to quote on a part for a really old ship of a British design, probably dating back to about the 1940's or so, when the drawing arrived in the office it was in fractional inches! Can you imagine a precision item including bearings with tolerances and all in fractions! What a nightmare. :)
B Fast
Posts: 1
Joined: Wed Apr 09, 2014 8:00 pm

Re: Units in Sketcher

Post by B Fast »

As this is my first encounter with FreeCAD, I am a bit confused about the status of "inch" units.
I need "inch" units. It is not worth it to me to learn FreeCAD if it doesn't support "inch" units. Rather than supporting feet, or fractions of inches, inch and decimal of inch is plenty.

If you get rid of the non-base 10 stuff of the imperial system, then the conversion to use alternative units should be really easy. If "units"* is soft-defined and if the label for those units is soft-defined, then the existing software should be great.
The only changes required would be on output, especially 3d printer output. However, even here, the file could be saved as it currently is (with a units marker ideally), and the conversion from metric to other units would be made at output time.

* Other units that may be nice include thousandth, and ten-thousandth. For larger projects, the foot (not inch) might be nice.
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Units in Sketcher

Post by wandererfan »

danielfalck wrote:I vote for a Decimal inch schema as well. I work in a machine shop environment and that is what we call it. We have to switch between metric and inch units a lot there and I don't worry about foot, yards etc- just inches or mm. Most of our digital measuring equipment will switch between units (decimal units that is) but not foot, yards. It's all just a matter of mulitplying by 25.4 for me.
Moved:
SchemaDecimalInch should be:
value < 0.0001" => 0.nnnn in. (may be scientific notation)
value < 0.001" => n tenths
value < 0.0" => nnn thou
value >= 0.0" => n.nn in. (may be scientific notation)
Area,Volumes, etc as in SchemaImperial1

Any seconders?

WF
User avatar
jriegel
Founder
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Units in Sketcher

Post by jriegel »

The Grid-Size widget in the sketcher is now a InputField and takes any value and any unit...
Stop whining - start coding!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Units in Sketcher

Post by triplus »

Nice. When it comes to grid it is always nice to have great customization capabilities. Will test when it lands on PPA.
User avatar
jriegel
Founder
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Units in Sketcher

Post by jriegel »

New Unit-Schema - Imperial Decimal for non switching inch display....
Stop whining - start coding!
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Units in Sketcher

Post by wmayer »

There is another problem with the input field. E.g. the input field for the grid is supposed to work for lengths but you can enter any kind of valid quantity and it accept this input. So, you can enter "25 l" which in this context doesn't make sense. So, shouldn't the input field have a way to accept input of only a certain unit?

I have implemented a special validator similar to that used in a QDoubleSpinBox which now disallows to enter values out of range. There we could also do the matching of the units.
User avatar
jriegel
Founder
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Units in Sketcher

Post by jriegel »

Mhh, I thought I had set the unit in the ui file... I have to check when I'm home again...

Or maybe its the new volumetric sketch feature! Brand new!! ;) :lol:
Stop whining - start coding!
tday
Posts: 25
Joined: Sun Jun 08, 2014 12:53 pm

Re: Units in Sketcher

Post by tday »

Hello all,
Totally new to FreeCAD, looks really nice. But why is it when i select Imperial as my units and draw a 1" square, that the square actually measures 25.4?
Using Windows7 Pro 64 bit.
Thanks for any info,
Troy
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Units in Sketcher

Post by NormandC »

Hello Troy,

You have not mentioned your FreeCAD version. Imperial units is only supported in the current development release. The available Windows development versions are outdated now and may lack some units support.

The "stable" version of v0.14 is about to be released, it will include what's been discussed in this topic.
Post Reply