Format
Version comparisonPer-version detail
Click a version below to see what changed in that release vs your current frame (2027).
Not present in: 2020
2027
current
UnitFormatUtils.Format(Units, ForgeTypeId, Double, Boolean)
| units | Units | The units formatting settings, typically obtained from <a href="9ed56178-e9ae-b4bc-1c0e-e6a867ae3557.htm">Document.GetUnits()</a>. |
| specTypeId | ForgeTypeId | Identifier of the spec of the value to format. |
| value | Double | The value to format, in Revit's internal units. |
| forEditing | Boolean | True if the formatting should be modified as necessary so that the formatted string can be successfully parsed, for example by suppressing digit grouping. False if unmodified settings should be used, suitable for display only. |
| → returns | String | The formatted string. |
UnitFormatUtils.Format(Units, ForgeTypeId, Double, Boolean)
| units | Units | The units formatting settings, typically obtained from <a href="9ed56178-e9ae-b4bc-1c0e-e6a867ae3557.htm">Document.GetUnits()</a>. |
| specTypeId | ForgeTypeId | Identifier of the spec of the value to format. |
| value | Double | The value to format, in Revit's internal units. |
| forEditing | Boolean | True if the formatting should be modified as necessary so that the formatted string can be successfully parsed, for example by suppressing digit grouping. False if unmodified settings should be used, suitable for display only. |
| → returns | String | The formatted string. |
UnitFormatUtils.Format(Units, ForgeTypeId, Double, Boolean)
| units | Units | The units formatting settings, typically obtained from <a href="9ed56178-e9ae-b4bc-1c0e-e6a867ae3557.htm">Document.GetUnits()</a>. |
| specTypeId | ForgeTypeId | Identifier of the spec of the value to format. |
| value | Double | The value to format, in Revit's internal units. |
| forEditing | Boolean | True if the formatting should be modified as necessary so that the formatted string can be successfully parsed, for example by suppressing digit grouping. False if unmodified settings should be used, suitable for display only. |
| → returns | String | The formatted string. |
UnitFormatUtils.Format(Units, ForgeTypeId, Double, Boolean)
| units | Units | The units formatting settings, typically obtained from <a href="9ed56178-e9ae-b4bc-1c0e-e6a867ae3557.htm">Document.GetUnits()</a>. |
| specTypeId | ForgeTypeId | Identifier of the spec of the value to format. |
| value | Double | The value to format, in Revit's internal units. |
| forEditing | Boolean | True if the formatting should be modified as necessary so that the formatted string can be successfully parsed, for example by suppressing digit grouping. False if unmodified settings should be used, suitable for display only. |
| → returns | String | The formatted string. |