Std UnitsCalculator: Difference between revisions

From FreeCAD Documentation
m ((Vertical GuiCommand))
(update page to the current dialog)
Line 6: Line 6:
|MenuLocation=Tools → Unit calculator...
|MenuLocation=Tools → Unit calculator...
|Workbenches=All
|Workbenches=All
|SeeAlso=...
|SeeAlso=[[Units]]
}}
}}


<!--T:2-->
<!--T:2-->
Opens the unit calculator dialog, which allow to transform Quantities into different units.
The units calculator dialog allows to calculate quantities to different units.


== Synopsis == <!--T:3-->
== Description == <!--T:3-->
The first field defines a value and a corresponding unit (what kind of units get recognized you can see in the [[Quantity]] description). In the second field you specify the resulting unit. The third field present the result. Pressing return in field one or two will add the result of the calculation to the log area for later usage.


<!--T:4-->
<!--T:4-->
[[File:Units_Calculator_it.png|none|frame|The dialog with the three fields and the log area]]
If one of the fields get red in the background means an error occurred. Either the parser gets and error in the unit expression or the source and target unit do not fit. Hovering over an red input field shows you the error string.

The first field defines a value and a corresponding unit. If you enter an unknown unit, you get a ''syntax error''. Units with exponents can be inserted in the form '''m^3'''. [[Expressions#Units|Here]] is a list of all known units.<br> In the second field you specify the resulting unit. If the unit type of the second filed does not match the unit type of the first field, you get a ''unit mismatch''. For example if you try to calculate "12 g" to "nm". because a mass cannot be expressed as a length.<br> The third field shows the result.


<!--T:5-->
<!--T:5-->
The Copy button copies the result into the clipboard, so you can use it in any other dialog of FreeCAD.
Pressing return in field one or two will add the result of the calculation to the log area for later usage. The ''Copy'' button copies the result into the clipboard, so you can use it in another dialog of FreeCAD.


<!--T:6-->
<!--T:6-->
In the field ''Quantity'' you can input a value and select a unit type in the combobox behind. You will get as result the [https://en.wikipedia.org/wiki/International_System_of_Units#Base_units base unit] of the selected unit type. For example ''75'' and type ''Frequency'' results in ''75 Hz''.
The dialog is a non-modal dialog and can stay open as long as you want. It do not block the rest of FreeCAD.


== Dialog == <!--T:7-->
<!--T:7-->
The dialog can stay open as long as you want and does not block the rest of FreeCAD
[[File:Units_Calculator_it.png]]


<!--T:8-->
<!--T:8-->
{{Caption|The dialog with the three fields and the log area.}}

<!--T:9-->
{{Std Base}}
{{Std Base}}
{{Userdocnavi}}
{{Userdocnavi}}

Revision as of 23:14, 6 December 2019

Std_UnitsCalculator

Menu location
Tools → Unit calculator...
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Units

The units calculator dialog allows to calculate quantities to different units.

Description

The dialog with the three fields and the log area

The first field defines a value and a corresponding unit. If you enter an unknown unit, you get a syntax error. Units with exponents can be inserted in the form m^3. Here is a list of all known units.
In the second field you specify the resulting unit. If the unit type of the second filed does not match the unit type of the first field, you get a unit mismatch. For example if you try to calculate "12 g" to "nm". because a mass cannot be expressed as a length.
The third field shows the result.

Pressing return in field one or two will add the result of the calculation to the log area for later usage. The Copy button copies the result into the clipboard, so you can use it in another dialog of FreeCAD.

In the field Quantity you can input a value and select a unit type in the combobox behind. You will get as result the base unit of the selected unit type. For example 75 and type Frequency results in 75 Hz.

The dialog can stay open as long as you want and does not block the rest of FreeCAD