Description Changes the geometry units for the associated FRED document. Note that only the units, not the values, are changed. In order to also rescale the values to the new units, a scaling function should be called in addition to this function e.g. ScaleSystem. Where the intention is to change units and rescale it is advised to use the ScaleToUnits command instead.
Syntax SetUnits newUnit
Parameters newUnit As String A string holding the new unit type. Can be one of the following: "Angstrom" "A" "nanometer" "nm" "micron" "um" "millimeter" "mm" "centimeter" "cm" "meter" "m" "kilometer" "km" "microinch" "uinch" "inch" "in" "foot" "ft" "yard" "yd" "mile" "mi"
Remarks This subroutine sets the geometry units for the associated FRED document. If there is a problem the subroutine returns and does not set an error. If the subroutine cannot recognize the unit type in newUnit, it assigns "mm" as the units (abbreviation for millimeters).
See Also Examples
|