References a length formatter object. Length formatters are used to generate formatted strings (optionally with units) from length, area, and volume values. Additionally length formatters can be used to translate a formatted length/area/volume string into a value. Accessors and setters are exposed for some of the key formatting properties, facilitating customization of the formater. In cases when users want the formatter to reflect the properties of a model, SUModelGetLengthFormatter should be used to more efficiently extract/copy the relevant properties from the model to the formatter.
More...
|
(Note that these are not member functions.)
|
| SU_RESULT | SULengthFormatterCreate (SULengthFormatterRef *formatter) |
| | Creates a new length formatter with default properties. More...
|
| |
| SU_RESULT | SULengthFormatterRelease (SULengthFormatterRef *formatter) |
| | Releases a length formatter object. More...
|
| |
| SU_RESULT | SULengthFormatterGetPrecision (SULengthFormatterRef formatter, size_t *precision) |
| | Retrieves the precision of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetPrecision (SULengthFormatterRef formatter, size_t precision) |
| | Sets the precision of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetAreaPrecision (SULengthFormatterRef formatter, size_t *precision) |
| | Retrieves the area precision of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetAreaPrecision (SULengthFormatterRef formatter, size_t precision) |
| | Sets the area precision of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetVolumePrecision (SULengthFormatterRef formatter, size_t *precision) |
| | Retrieves the volume precision of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetVolumePrecision (SULengthFormatterRef formatter, size_t precision) |
| | Sets the volume precision of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetFormat (SULengthFormatterRef formatter, enum SULengthFormatType *format) |
| | Retrieves the format of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetFormat (SULengthFormatterRef formatter, enum SULengthFormatType format) |
| | Sets the format of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetUnits (SULengthFormatterRef formatter, enum SULengthUnitType *units) |
| | Retrieves the units of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetAreaUnits (SULengthFormatterRef formatter, enum SUAreaUnitType *units) |
| | Retrieves the area units of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetVolumeUnits (SULengthFormatterRef formatter, enum SUVolumeUnitType *units) |
| | Retrieves the volume units of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetUnits (SULengthFormatterRef formatter, enum SULengthUnitType units) |
| | Sets the units of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetAreaUnits (SULengthFormatterRef formatter, enum SUAreaUnitType units) |
| | Sets the area units of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterSetVolumeUnits (SULengthFormatterRef formatter, enum SUVolumeUnitType units) |
| | Sets the volume units of a length formatter. More...
|
| |
| SU_RESULT | SULengthFormatterGetSuppressUnits (SULengthFormatterRef formatter, bool *suppress) |
| | Retrieves whether units are suppressed. More...
|
| |
| SU_RESULT | SULengthFormatterSetSuppressUnits (SULengthFormatterRef formatter, bool suppress) |
| | Sets whether units are suppressed. More...
|
| |
| SU_RESULT | SULengthFormatterGetLengthString (SULengthFormatterRef formatter, double length, bool strip, SUStringRef *string) |
| | Retrieves a formatted length string from the provided length value. More...
|
| |
| SU_RESULT | SULengthFormatterGetAreaString (SULengthFormatterRef formatter, double area, SUStringRef *string) |
| | Retrieves a formatted area string from the provided area value. More...
|
| |
| SU_RESULT | SULengthFormatterGetVolumeString (SULengthFormatterRef formatter, double volume, SUStringRef *string) |
| | Retrieves a formatted volume string from the provided volume value. More...
|
| |
| SU_RESULT | SULengthFormatterParseString (SULengthFormatterRef formatter, SUStringRef string, double *value) |
| | Parses a formatted length string getting the numeric value. More...
|
| |
| SU_RESULT | SULengthFormatterSetForceInchDisplay (SULengthFormatterRef formatter, bool force_inch) |
| | Force the display of Architectural inches even if the value is zero. More...
|
| |
| SU_RESULT | SULengthFormatterGetForceInchDisplay (SULengthFormatterRef formatter, bool *force_inch) |
| | Determine if Architectural inches will display even if the value is zero. More...
|
| |
References a length formatter object. Length formatters are used to generate formatted strings (optionally with units) from length, area, and volume values. Additionally length formatters can be used to translate a formatted length/area/volume string into a value. Accessors and setters are exposed for some of the key formatting properties, facilitating customization of the formater. In cases when users want the formatter to reflect the properties of a model, SUModelGetLengthFormatter should be used to more efficiently extract/copy the relevant properties from the model to the formatter.
- Since
- SketchUp 2018, API 6.0