UnitAndValuePreferences Object
Derived from: Base ObjectDefined in namespace "adsk::core" and the header file is <Core/Application/UnitAndValuePreferences.h>
Description
The UnitAndValuePreferences object provides access to unit and value precision related preferences.Methods
Name | Description |
classType | Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType(). |
Properties
Name | Description |
angularPrecision | Gets and sets the angular precision. This value specifies the number of decimals to display. |
areAbbreviationsForUnitDisplayed | Gets and sets if abbreviations are used for units display. |
areSymbolsForUnitDisplayed | Gets and sets if symbols are used for units display. |
areTrailingZerosHidden | Gets and sets if trailing zeros are hidden when displaying numbers. |
degreeDisplayFormat | Gets and sets the degree display format. |
footAndInchDisplayFormat | Gets and sets the foot and inch display format. |
generalPrecision | Gets and sets the general precision for distance values. This value specifies the number of decimals to display. |
isPeriodDecimalPoint | Gets and sets if the decimal is a period or comma. |
isScientificNotationUsed | Gets and sets if scientific notation is used when displaying numbers. |
isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
materialDisplayUnit | Gets and sets the units types to use when displaying values. |
minimumPrecisionWhenHidingZeros | Gets and sets the minimum number of digits to the right of the decimal to display before hiding trailing zeros. |
objectType | This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object. It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType(): |
scientificNotationPrecision | Gets and sets the number scientific notation precision. This value specifies the number of decimals to display. |
useScientficNotationAbove | Gets and sets the number of whole digits that will be displayed before switching to scientific notation. |
useScientficNotationBelow | Gets and sets the number of non zero decimal places that will be displayed before switching to scientific notation. |