Units/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Replaced content with "== Vedere anche ==")
Line 58: Line 58:
Un elenco completo di tutte le unità supportate [[Expressions/it#Unità|si trova quì]].
Un elenco completo di tutte le unità supportate [[Expressions/it#Unità|si trova quì]].


== Vedere anche ==
<div class="mw-translate-fuzzy">
== Prossime azioni ==

* Implementing Quantity and Unit classes (mostly done)
* Implementing InputField as User front end (in progress)
* UnitsCalculator as test bed (in progress)
* [[Quantity/it|Quantity]] documentation (in progress)
* [[Std_UnitsCalculator/it|UnitsCalculator]] documentation
* Update Material framework to work only with Quantities
* Test Cases
</div>


* The [[Expressions#Units|Expressions]] page for a list of all known units.
* The [[Expressions#Units|Expressions]] page for a list of all known units.

Revision as of 20:14, 8 October 2022

Alcune letture sulle unità di misura:

Esempi

# -- some examples of the FreeCAD unit translation system --
# make a shortcut for the examples
pq = FreeCAD.Units.parseQuantity

# 10 meters in internal numbers
pq('10 m')

# doing math
pq('3/8 in')

# combined stuff
pq('100 km/h')

# transfer to other units
pq('100 km/h')/tu('m/s')

# derived units (Ohm)
pq('m^2*kg*s^-3*A^-2')

# or
pq('(m^2*kg)/(A^2*s^3)')

# angles 
pq('2*pi rad') # full circle

# as gon
pq('2*pi rad') / tu('gon')

# more imperial
tu('1ft (3+7/16)in')

# or 
pq('1\' (3+7/16)"') # the ' we have to escape because of python

# trigonometry
pq('sin(pi)')

# Using translated units as parameters, this command will create a 50.8mm x 20mm x 10mm box
b = Part.makeBox(pq('2in'), pq('2m')/100, 10)

Unità supportate

Un elenco completo di tutte le unità supportate si trova quì.

Vedere anche