Returns the scale factor for changing between unit systems.
rhinoscriptsyntax.UnitScale (to_system, from_system=None)
rhinoscript.document.UnitScale (to_system, from_system=None)
to_system |
Required. Number. The units system to convert to. The possible units systems are as follows:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
from_system |
Optional. Number. The units system to convert from (see above). If omitted, the document's current unit system is used |
Number |
The scale factor for changing between unit systems if successful. |
import rhinoscriptsyntax as rs
print rs.UnitScale(3, 4) # 100.0
print rs.UnitScale(3, 8) # 2.54
print rs.UnitScale(8, 9) # 12.0